This is puzzling my now for quite some time now. I can't seem to make any TCP/IP connection from my ActiveX component using the CAsyncSocket class. Somehow the CAsynSocket::Create() returns FALSE but I don't know why.
Even when I create a fresh new ActiveX component and add this code I can't even to create the socket.
CAsyncSocket Socket;
Socket.Create(); <- Returns false !?!?!?
Why does the Create() function fail when I use it from an ActiveX component?
This same code sure works when I use it from a .exe file.
Even when I create a fresh new ActiveX component and add this code I can't even to create the socket.
CAsyncSocket Socket;
Socket.Create(); <- Returns false !?!?!?
Why does the Create() function fail when I use it from an ActiveX component?
This same code sure works when I use it from a .exe file.