Hi, I am using this code from Visual C++, LoadLibrary does load the library well, GetProcAddress finds the function inside the DLL, but when I call to the pointer-to-function, the application crashes.
What am I doing wrong? Typedef declaration maybe? Is there any similar working sample for Visual C++?
I have changed the export.cl file with stdcall, but now the GetProcAddress function stopped working from the client side. Cannot find "exportedPredicate" entry point.
It seems like there is a kind of "decorated names" aka "mangling" maybe using the class name as a prefix.
class export
predicates
exportedPredicate :()language stdcall.
end class export
I have supressed also the "open core" line.
From the C language caller (client part) I have tried GetProcAddress with function names like "export.exportedPredicate" and export::exportedPredicate" but without success.
My question is: Which is the right function name that I have to search for?
I've found the way: I opened the binary file of the DLL and browsed for "exportedPredicate and found the real name as "?exportedPredicate@export@@SGXXZ"