Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Is MSCOMM not usable in VFP5.0?
Message
General information
Forum:
Visual FoxPro
Category:
COM/DCOM and OLE Automation
Title:
Is MSCOMM not usable in VFP5.0?
Miscellaneous
Thread ID:
00719620
Message ID:
00719620
Views:
69
I've got a computer w/W98 on it and it reads a scale input to get weight and enter it into a form in VFP 5.0 I'm trying to move this to a newer computer with W2K but I get an OLE Control error code when I try to open the port.
Of the code below we get the error at the 'portopen' command:

*Set it to COM1
thisform.olecontrol1.commport = 1

* Tell the control to read the entire buffer when i/p is used.
thisform.olecontrol1.inputlen = 0

* Open the COM port for communications
thisform.olecontrol1.portopen = .T.

I've heard that when the programmer who setup the w98 computer tried to add the OLE Control he ended up having to Edit the Registry to get it to work.

Does anyone have a MS-Q article# on this or some advise on how to get it added. I thought it was just the MSComm.ocx or MSComm32.ocx but I go to add these in VFP Tools/Options/Controls/Add and I do not know what it looks like in the ActiveX Controls listing.

Help!
Next
Reply
Map
View

Click here to load this message in the networking platform