Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
I can't do simple API Object stuff!!!
Message
From
11/03/2004 16:16:38
 
 
To
All
General information
Forum:
Visual FoxPro
Category:
Windows API functions
Title:
I can't do simple API Object stuff!!!
Miscellaneous
Thread ID:
00885374
Message ID:
00885374
Views:
55
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
Map
View

Click here to load this message in the networking platform