Information générale
Catégorie:
COM/DCOM et OLE Automation
I am using a dll file that allows me to communicate to a pressure controller. I can write commands to the controller but it will not read them back. I looked at the DLL and do not see anything out of the ordinary.
I looked a a VB project and the only thing is:
Dim RcvData(0 To 255) As Long
I cannot structure a Visual foxpro array like this. I this that this is the problem.
i = ReadNetVar(node, ID_SETPOINT, RcvData(0)) is the read command. and putting a monitor on the com port the command executes but no data comes back. I am fairly sure it is due to the variable not being used
I am using the declare command as follows:
Declare long ReadNetVar in 'tescom.dll' long,long,long@recdata
Any help would great.
Thanks
Rich
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