Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Making VFP DLL functions visible.
Message
From
02/07/1999 09:52:27
 
General information
Forum:
Visual FoxPro
Category:
Windows API functions
Miscellaneous
Thread ID:
00236819
Message ID:
00236893
Views:
10
>I have written a couple of test DLLs in VFP and they work if I call them from VFP. However, I want to call them from C, Delphi, and VB but the 'entry point' is missing. When I write DLLs in C, I have to declare functions as WINAPI - is there anything similar in VFP?
>
>My basic code is similar to this:-
>
>DEFINE CLASS x AS custom OLEPUBLIC
>   FUNCTION FuncOne
>      * does something here
>      * returns result
>   ENDFUNC
>   FUNCTION FuncTwo
>      * returns something else
>   ENDFUNC
>ENDDEFINE
>
>
>Don't quote me on this code, it's from memory (not exact). The basic structure shows what I have.
>
>Am I missing anything from this??

That should work. Are you setting the reference in the VB project?
Craig Berntson
MCSD, Microsoft .Net MVP, Grape City Community Influencer
Previous
Reply
Map
View

Click here to load this message in the networking platform