Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Making VFP DLL functions visible.
Message
De
02/07/1999 09:52:27
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Fonctions Windows API
Divers
Thread ID:
00236819
Message ID:
00236893
Vues:
11
>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
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform