RE: help! (DLLs)

new topic     » topic index » view thread      » older message » newer message

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_").
> 
> 
>

new topic     » topic index » view thread      » older message » newer message

Search



Quick Links

User menu

Not signed in.

Misc Menu