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

    Sockets and consoles

    I am attempting to delevop a console app ( an NT Service ) that uses CSocket. It would appear that MFC is not very happy about this. I can get around some of the problems by declaring a global instance of CWinApp and also calling AfxSetResource, but I can not get my socket to accept connections. Has anyone got an idea as to what the cause could be?


  2. #2
    Join Date
    Mar 2000
    Location
    Sweden
    Posts
    1

    Re: Sockets and consoles

    I'am doing exactly the same thing now using the codeguru NTService ( http://www.codeguru.com/system/nt_service.shtml ), and I also got the connection problem. It looks like the CAsyncSocket uses some kind of CWnd to get window messages, who tells the CAsyncSocket object to execute the OnConnect, OnAccept etc...

    Does anybody have example code or any Ide's how to solve this.


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