Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Calling DLL from VFP
Message
De
23/01/2003 04:14:27
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00744625
Message ID:
00744634
Vues:
16
Tut

From VFP help: DECLARE - Registers a function in an external shared library. Libraries are 32-bit dynamic link library (.DLL) files.
DECLARE [cFunctionType] FunctionName IN LibraryName [AS AliasName]
        [cParamType1 [@] ParamName1, cParamType2 [@] ParamName2, ...]
So you need to know the function name and what parameters it takes. For a simple example: to declare the Sleep function (like INKEY) :
DECLARE INTEGER Sleep IN Win32API ;
        INTEGER nMilliseconds
To use it in VFP - after declaring it above you would type:
=Sleep(5000) && 5000 milliseconds wait
>HI guys..
>
>I want to know how we call a DLL file from VFP
>
>Any of you know some samples
>
>Please let me know..
>
>
>thanks
In the End, we will remember not the words of our enemies, but the silence of our friends - Martin Luther King, Jr.
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform