Need source for WSAAsyncGetHostByAddr()
-
Hi all, I'm new to WinSock. Please, if anyone know where I can find source code of how to use WSAAsyncGetHostByAddr() in an VC++/MFC application send me a mail. I found an example of using WSAAsyncGetHostByAddr() in C/SDK app. but I have an VC++/MFC app. and I wish to update it with WSAAsyncGetHostByAddr(). Thank you, Mileta.
-
Hi all, I'm new to WinSock. Please, if anyone know where I can find source code of how to use WSAAsyncGetHostByAddr() in an VC++/MFC application send me a mail. I found an example of using WSAAsyncGetHostByAddr() in C/SDK app. but I have an VC++/MFC app. and I wish to update it with WSAAsyncGetHostByAddr(). Thank you, Mileta.
Hi, I hope is usefull to you: Add this lines bellow in your InitInstance method of your application and you can use any WSA.. function . WSADATA wsa; WSAStartup(0x0101, &wsa); in ExitInstance(): WSACleanup(); and #include in your stdafx.h file also you must link your application with wsock32.lib It doesn't matter if your application is build with or without MFC Best Regards, /REMUS