Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Is MSCOMM not usable in VFP5.0?
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
COM/DCOM et OLE Automation
Titre:
Is MSCOMM not usable in VFP5.0?
Divers
Thread ID:
00719620
Message ID:
00719620
Vues:
70
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!
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform