Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Error
Message
From
06/08/2002 18:17:42
Raza Malik
Universal Accounting Software
Edgewater, New Jersey, United States
 
 
To
All
General information
Forum:
Visual FoxPro
Category:
COM/DCOM and OLE Automation
Title:
Error
Miscellaneous
Thread ID:
00686801
Message ID:
00686801
Views:
104
Hi! There

Does anyone has experience msmComm control 6.0. I am using VFP7.0. When I use the following code to open a cash drawer on a computer with foxprox installed it works fine. But when I runc the same program compiled on a computer without foxpro installed, I get and error message:

OLE Error Code 0x80040112: Appropriate license for this class
not found.

I do drop the OLE control for msmComm on the form on the form calling this routine.

<>
Sample Code:

*load mscomm
oComm = CREATEOBJ('MSCOMMLib.MSComm')
oComm.CommPort = 1
oComm.Settings = "9600,N,8,1"
oComm.InputLen = 0
oComm.PortOpen = .T.

*-- At this point cash drawer opens
oComm.output = 'CHR(07)'

* Close the port
oComm.PortOpen = .F.
RELEASE oComm

*--
<>

Any help deeply appreciated....

Thanks In Advance...

Raz & Alook
Next
Reply
Map
View

Click here to load this message in the networking platform