Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
MSComm32.ocx and 'appropriate license' bug
Message
From
28/11/2001 11:23:45
 
 
To
All
General information
Forum:
Visual FoxPro
Category:
Other
Title:
MSComm32.ocx and 'appropriate license' bug
Miscellaneous
Thread ID:
00587009
Message ID:
00587009
Views:
67
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.ASP

There 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:
* Class to handle serial communications
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])

* Class to handle serial communications
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.
Next
Reply
Map
View

Click here to load this message in the networking platform