// TESTDLL.CPP // created with MSVC++ 1.51 // to create the project, copy file to C:\msvc\testdll // then select Project|New and set the following: // project name = C:\msvc\testdll\testdll // project type = DLL // Use MFC = NO // then add testdll.cpp, testdll.def to the project (*.h are automatic) // set large memory model under Options|Project.. memory model #include // initialization exectued when DLL loaded int FAR PASCAL LibMain(HANDLE hModule, WORD wDataSeg, WORD wHeapSize, LPSTR lpszCmdLine ) { if (wHeapSize) UnlockData(0); return 1; } // Windows Exit Procedure extern "C" int FAR PASCAL __export WEP (int bSystemExit) { return 1; } #define DLLTYPE_3x #include "testdll2.cpp"