I'm trying to build a wrapper object in a prg for the mscomm32.ocx. Everything was fine on my development machine, but when I put it on a workstation withouth VFP installed, i get the error described below:
http://support.microsoft.com/support/kb/articles/Q192/6/93.ASPThere is alleged workaround code in that article, but it does not work for mscomm32.ocx (or at all without some editing). Does anybody know how to make this work? What I would like to use, which works on my development box, is:
DEFINE CLASS mx_Comm AS Container
ADD OBJECT oMSComm AS OLEControl
oMSComm.OLEClass="MSCOMMLib.MSComm"
ENDDEFINE
The KB article seems to indicate that:
PUBLIC o
o=CREATEOBJECT([mx_comm])
DEFINE CLASS mx_Comm AS Container
ADD OBJECT oMSComm AS MSComm
ENDDEFINE
DEFINE class msComm AS OleControl
OleClass = "MSCOMMLib.MSComm"
ENDDEFINE
...should fix the problem, but it does not.
I know I can stick this in a form in a vcx and have it work, but I'm being stubborn...and I'm kind of miffed that this has been a known bug since '99.
(I also have a sneaking suspicion that I've missed something obvious)
Any help would be much appreciated.
Russ.