Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
How to use dll's
Message
General information
Forum:
Visual FoxPro
Category:
Other
Miscellaneous
Thread ID:
00418635
Message ID:
00418659
Views:
27
>Would anybody be able give me an idea where to start research. I am trying to use a custom built dll created in VB. I have never worked with a dll before and the MSDN help and samples all seem to confuse me more. The dll I am working with is requesting multiple parameters and the samples seem to only have one. from what i found there is no documentation in FAQ's and files and such directed to dll's.


In the help it has:

DECLARE [cFunctionType] FunctionName IN LibraryName [AS AliasName]
[cParamType1 [@] ParamName1,
cParamType2 [@] ParamName2, ...]

Basically you have to have a declare statement for any function you are going to use in the dll.

cFunctionType - is the type of the return value of the functions

FunctionName - is the name of the function in the dll

LibraryName - the name of the dll file

AliasName - an alias you can use instead of FunctionName

Then you list the var types of the parameters that you will be passing the function.


Example

decalare integer MyFunction in c:\mydll.dll integer,double,integer
Rip Ryness
International Falls, MN
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform