>Dan,
>
>as far as the DECLARE in VFP is concerned it's case-sensitive to the VC++ declaration. There are two ways of making the entry point visible to the external world. The one I use is making a line in the exports section of the .DEF file.
>
>The second method is to add the macros extern "C" __declspec(dllexport) in front of the member function. If that syntax isn't exactly right ask Vlad for the correct syntax.
>
>>DECLARE MyMessageBox IN "MyFirstVfpDll"
>>
>>?MyMessageBox()
>>
>>Error: An entry point for MyMessageBox could not be found.
In the .def file there is an
EXPORTS section that reads basically
EXPORTS
;Explicit exports can go here
No just add this line add the end
functionname @1
In the case of this program
MyMessageBox @1
Why the @1. I don't know. If there we're two functions would the second be @2. I don't have a clue but I finally got one to work. Thank you very much for that website. That was very informative.
Dan
Previous
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