Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Does anyone know the details of int

Status
Not open for further replies.

markv105

Programmer
Aug 8, 2002
11
CA
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 << &quot;Test&quot; 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 &quot;poly_inter.dll&quot;

Any thoughts on this?

Thanks!

 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top