Re: help! (DLLs)

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

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     » goto parent     » topic index » view thread      » older message » newer message

Search



Quick Links

User menu

Not signed in.

Misc Menu