AutoIt in C++?

02/02/2014 10:49 return!#1
Hello Guys :) Sorry for my bad english. Well , Can you help me with convert AutoIt code in C++ Code?
$packet= "...."
$IP = "127.0.0.1"
TCPStartUp()
$socket = TCPConnect( $IP, 4003)
If $socket = -1 Then MsgBox (0,"Service","Can't connect.")
TCPSend($socket, $packet)
TCPShutdown ( )

Thanks :)
02/02/2014 11:04 IceTrailer#2
#define packet ....
#define IP 127.0.0.1
#define socket = TCPConnect(IP,4003)

TCPStartUp();

if (socket == -1)
{
MessageBox(0, "Can't connect.", "Service", MB_OK);
}

TCPSend(socket, packet)
TCPShutdown();

//But it's only pseudo-code..
//but you can orient yourself a bit to it
02/02/2014 13:10 return!#3
Thanks :D
02/02/2014 16:50 Abraxas Ethar#4
#moved