Information générale
Catégorie:
COM/DCOM et 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
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