BOOL CTestApp::InitInstance()
{
CWinApp::InitInstance();
   
if (!AfxSocketInit())
{
AfxMessageBox(IDP_SOCKETS_INIT_FAILED);
return FALSE;
}         CSocket *s = new CSocket();
s->Create();     //假如代码放这里,成功 return TRUE;
}extern "C" __declspec(dllexport) int TestExport()
{
        CSocket *s = new CSocket();
s->Create();     //错误
        return 0;
}