General information
Category:
Coding, syntax & commands
Title:
Calling a function in a VFP dll from a C++ app
Hello,
I have followed various examples to create a VFP dll and attempt to call it from Visual C++. The dll gets loaded but I do not get a pointer to the function. The VFP code in the dll looks like this:
DEFINE CLASS getReport as SESSION OLEPUBLIC
FUNCTION getData ()
.
.
.
The relevant C++ code is (assuming the dll gets loaded - I do get a real pointer returned from the LoadLibrary):
typedef BOOL (CALLBACK* getDataType)(LPCTSTR);
getDataType getDataPtr = NULL;
getDataPtr = (getDataType)GetProcAddressd(dllHandle,"getData");
The getDataPtr is always null. Do I need the class and function name (getReport.getData)? Doesn't seem to help...
Thanks,
Pat
Next
Reply
View the map of this thread
View the map of this thread starting from this message only
View all messages of this thread
View all messages of this thread starting from this message only