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?