I am using the MFC class CSocket. Nothing complicated - open a connection to a server and send a short message. The code works fine when I link with MFC in a DLL. However, the call to CSocket::Create() crashes when I link to MFC in a static library.
I would like to use MFC in a static library since it simplifies distribution.