l'export en c++ est fait correctement ?
du genre :
Code : Tout sélectionner
#ifdef OS_WINDOWS
#define DLLEXPORT __declspec(dllexport) __stdcall
#endif
extern "C" {
DLLEXPORT void MyFunc(int ArgA)
{
/* TON CODE */
}
}
#ifdef OS_WINDOWS
BOOL WINAPI DllMain(HINSTANCE hinstDLL, DWORD fdwReason, LPVOID lpvReserved)
{
switch (fdwReason)
{
case DLL_PROCESS_ATTACH:
// attach to process
// return FALSE to fail DLL load
break;
case DLL_PROCESS_DETACH:
// detach from process
break;
case DLL_THREAD_ATTACH:
// attach to thread
break;
case DLL_THREAD_DETACH:
// detach from thread
break;
}
return TRUE; // succesful
}
#endif