i am trying to connect to the hardware which is a intelligent device from PC. i am getting data from it. So i am only giving connect statement as in cllient from the PC with IP and Port . Now when i am using ConnectEx there is error Unresolved Exteral. i tried including the lib MswSock.lib . But no use if i removed Ws2_32 lib and then add this then ntoh and hton are giving error. so Ws2_32.lib has to there .so what to do?