Does anyone know the details of interfacing with a C++ generated dll in PB8.0? I'm getting a 'Bad Runtime function reference' when I call my Test() function inside the dll. I declared the function as:
extern "C" bool __declspec(dllexport) __stdcall
Test () { cout << "Test" return true}
I also declared
BOOL APIENTRY DllMain( HANDLE hModule,
DWORD ul_reason_for_call,
LPVOID lpReserved)
{
return TRUE;
}
which I'm not sure why I need.
within PB I declared the Test function as:
FUNCTION boolean Test() LIBRARY "poly_inter.dll"
Any thoughts on this?
Thanks!
extern "C" bool __declspec(dllexport) __stdcall
Test () { cout << "Test" return true}
I also declared
BOOL APIENTRY DllMain( HANDLE hModule,
DWORD ul_reason_for_call,
LPVOID lpReserved)
{
return TRUE;
}
which I'm not sure why I need.
within PB I declared the Test function as:
FUNCTION boolean Test() LIBRARY "poly_inter.dll"
Any thoughts on this?
Thanks!