Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

winsock problems

Status
Not open for further replies.

ecucurella

Programmer
Feb 17, 2003
34
ES
I'm using the Microsoft Winsock control 6.0 in Visual C++.
I have problems to use the GetData method, I receive an error.
Where can I find documentation of this method?
Or what another control or class I can use to make a socketserver?
Thanks in advance
 
That is an ActiveX control and I would not use it in a C++ application for socket communications. That’s like putting a 25 horse outboard motor on a 50 foot yacht [lol]

First there is the socket API’s that can be used directly and is what is mostly used today. If however you must have a pre-built class there are several to choose from. In MFC there are CAsyncSocket and CSocket. They are old and use hidden windows which are no longer needed in Winsock2 so I advise against using them. Still for simple applications they would work fine. You can probably find other Socket class implementations from people on codeproject and codeguru and other such web sites.

If your starting out with C++ Winsock development a place I recommend for learning is

-pete
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top