Information générale
Catégorie:
Fonctions Windows API
Titre:
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
Suivant
Répondre
Voir le fil de ce thread
Voir le fil de ce thread à partir de ce message seulement
Voir tous les messages de ce thread
Voir tous les messages de ce thread à partir de ce message seulement