General information
Category:
COM/DCOM and OLE Automation
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
View the map of this thread
View the map of this thread starting from this message only
View all messages of this thread
View all messages of this thread starting from this message only