RE: help! (DLLs)
- Posted by sephiroth _ <euman2376 at yahoo.com> May 11, 2001
- 456 views
i tried that, and no change. btw, i pedump'ed it and apparently it doesn't add underscores, but all compilers prepend underscores to function names stabmaster_ at HOTMAIL.COM wrote: > 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_"). > > >