CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 2 of 2

Thread: MFC Socket help

  1. #1
    Join Date
    Jul 2005
    Posts
    266

    MFC Socket help

    Okay in the past few days i have been trying everything to create an application which has one server socket and one client. i want the server socket to be listening and when i press the btn to send a text from the client to the server and the server socket to display it in a message box form onreceive but it doesn't work nomather what i do.
    So i have posted one of my sources bellow.
    Attached Files Attached Files

  2. #2
    Join Date
    May 2001
    Location
    Germany
    Posts
    1,158

    Re: MFC Socket help

    If you checked the return codes of your calls to CAsyncSock methods, you could easily see that you did not call WSAStartup, thus you are not creating the server socket ;-)

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  





Click Here to Expand Forum to Full Width

Featured