I have use of a DLL compiled in Oxygene, no source. I want to use it in a C++ application, but GetProcAddress after LoadLibrary can’t find the public methods, perhaps because they are declared within a public class. Any ideas?
More specifically, the DLL has this:
type
MyClass = public class
private
protected
public
public method MyMethod;
An Oxygene app can simply do this:
DLLClass := New(MyClass );
DLLClass .MyMethod;
I don’t know how to do the same with C++, and GetProcAddress can’t find MyMethod directly.
This code works for an old Delphi DLL with exported methods, but for the Oxygene DLL methods I get an access violation error when I call one of the methods. LoadLibrary and GetProcAddress both return non-NULL pointers.