I'm a Developer-Student and I'm writing my Bachelor-Thesis right now. Since a few days I despair at a problem about calling a DLL from Powerbuilder Classic 12.5.
Yes, there are Discussions about it, but I really tried a lot, and nothing works... and my collegues weren't able to help me, too.
I have a DLL, programmed in c++, which I want to call. The Head Function is
__declspec(dllexport) bool __stdcall registerPbControl(unsigned long hctl);
In PowerBuilder, I declared a Global External Function:
FUNCTION boolean registerControl (ulong hctl ) LIBRARY "C:\Users\...\GateWayFinal.dll" ALIAS FOR "registerPbControl;ansi"
And the Command of the Button in Powerbuilder:
boolean lb
lb = registerControl (handle (mle_1))
When I Press the Button, I get this error:
PowerBuilder application execution error: Application Terminated. Error: Bad runtime Function reference at line ...
What did I do wrong?