General information
Category:
Windows API functions
Title:
I can't do simple API Object stuff!!!
Hi all, I'm not sure why I am struggling with this one.
We got this to work in VB, but not FoxPro.
We have a 3rd party package that comes with two objects (one is an exe, the other is a dll).
api916.exe
916ipcol.dll
I can open them both in FOX OBJECT BROWSER. api916 has one class, dm916port. this class has many methods and properties. I can't get either to work. there is a property called CommPort I want to use to set the com port to 2. ""integer = CommPort(err as integer)""
Do I need to use DECLARE? CREATEOBJECT?? turn this class into an object first, and then refer to the object's commport property? I can't figure out how to do that in fox.
Here is VB code that WORKS! :)
Dim DM916 As New dm916port
Dim AsiRESULT As Integer
DM916.CommPort(AsiRESULT) = 2 'sets com 2
If AsiRESULT = 0 Then
AsiRESULT = DM916.StartComm() 'open 916 port
End If
any idea what the code should look like for fox? I need more ASI / OBJECT training I guess :(
THX!
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