呵呵 直接编译就可以了 需要一个文件头,就是这样的 /////////////////////////////////////////////////////////////// // // 动态连接库入口 /////////////////////////////////////////////////////////////// int __stdcall DllMain (HINSTANCE hinstDLL, DWORD fdwReason, LPVOID lpvReserved) { switch (fdwReason) { case DLL_PROCESS_ATTACH: if (InitCVIRTE (hinstDLL, 0, 0) == 0) return 0; /* out of memory */ break; case DLL_PROCESS_DETACH: CloseCVIRTE (); break; } return 1; } int __stdcall DllEntryPoint (HINSTANCE hinstDLL, DWORD fdwReason, LPVOID lpvReserved) { /* Included for compatibility with Borland */ return DllMain (hinstDLL, fdwReason, lpvReserved); } |