Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Vc++
Message
From
14/12/1998 18:18:44
George Lee
Microcomputer Engineering Services, Llc
Huntington Beach, California, United States
 
General information
Forum:
Visual FoxPro
Category:
Other
Title:
Re: Vc++
Miscellaneous
Thread ID:
00166468
Message ID:
00167470
Views:
19
>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
Map
View

Click here to load this message in the networking platform