General information
Category:
Windows API functions
Title:
Can't Pass Parameters to The DLL
I have downloaded a DLL written in Dephi which use for VB and i try to use it in VFP 5 ,but a problem occur. Since in VB it also has a declare command to call the DLL, but in VB it is pass parameters to the procedure. I found that in VFP is pass to function.
Below is my code. my DLL file is inpout32.dll
>DECLARE Integer Inp IN inpout32.dll AS Inp32 integer PortAddress
>DECLARE Out IN inpout32 AS Out32.dll integer PortAddress, integer
>Signal
>*PortAddress = 739
>Signal = 128
>Out(PortAddress, Signal)
>PortAddress = 736
when i run it error message display !! "File out.prg dost not exist"
Anyone know how to solve it ?
Actually the DLL is written for VB and inside the DLL is use procedure not function.
Can i pass the parameters to the procedure inside the DLL ?
How ?
regard,
chang
Next
Reply
View the map of this thread
View the map of this thread starting from this message only
View all messages of this thread
View all messages of this thread starting from this message only