Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Calling DLL from VFP
Message
From
23/01/2003 04:14:27
 
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00744625
Message ID:
00744634
Views:
10
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.
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform