CoderSource.net
Search
CSockets
Started by theDentist at 01-05-2008 11:13 AM. Topic has 0 replies.

Print Search « Previous Thread
   01-05-2008, 11:13 AM
theDentist is not online. Last active: 1/5/2008 4:01:46 PM theDentist

Top 10 Posts
Joined on 12-05-2005
Posts 42
CSockets
 It's been a long time since I've been on this forum. I hope somebody still looks at it.  I've had to do some work in an MFC program recently which needed communication by sockets.  I tried to use the CSocket class but failed on the second line of code, I declared the empty CSocket variable, then called the Create functioin which then fails.  When I call GetLastError, I get code 10093, what am I doing wrong, this fails on three computers, running Win2K and XP.  I'm using VC++ 6.  The Create function has three possible parameters. I've tried all combinations, from accepting all defaults by (), passing 0 to the first parameter to let the system choose the port, the second parameter is the flagged as stream, which is the default, the third parameter when 0 defaults to localhost.  Can anyone help with some ideas.  I can do nothing with the socket till this works


Peter

   Report 
Codersource.Net » Programming » MFC Programming » CSockets

MENU
Home
MFC 
C++
.Net
WIN32
Programming
Forum
My Articles
Welcome to Codersource.Net Login | Register | Faq  

Google
 

NOTES:


Thanks for visiting our CoderSource.net. This site will be improved with more articles. Interested visitors can also submit their articles through the Submit Article link.Your article will also be published after due consideration by the editor. 

© Copyright 2003. All rights on content reserved by CoderSource.net. Contact    About Us