General information
Category:
COM/DCOM and 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
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