Information générale
Catégorie:
COM/DCOM et OLE Automation
Titre:
Is MSCOMM not usable in VFP5.0?
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
Voir le fil de ce thread
Voir le fil de ce thread à partir de ce message seulement
Voir tous les messages de ce thread
Voir tous les messages de ce thread à partir de ce message seulement