Re: help! (DLLs)
- Posted by stabmaster_ at HOTMAIL.COM May 11, 2001
- 497 views
Hmm.. does your C file have the following function in it? BOOL WINAPI __declspec(dllexport) LibMain(HINSTANCE hDLLInst, DWORD fdwReason, LPVOID lpvReserved) { switch (fdwReason) { case DLL_PROCESS_ATTACH: return TRUE; break; case DLL_PROCESS_DETACH: break; case DLL_THREAD_ATTACH: break; case DLL_THREAD_DETACH: break; } return TRUE; } Every dll must have a LibMain(). Oh, and now that I think about it; I recall lcc adding underscores to all function-names. So you prolly should try define_c_proc("test_").