Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Using vcx class in VFP ole class problem
Message
De
22/07/2002 10:35:28
 
 
À
19/07/2002 22:32:31
Information générale
Forum:
Visual FoxPro
Catégorie:
Contrôles ActiveX en VFP
Divers
Thread ID:
00680299
Message ID:
00681133
Vues:
27
See response on your other thread, hope it helps.

>Hi,
>
>Thank for your advise, I had log all error, there is
>nothing wrong, just that insteads of normal trigger
>my POS drawer to open, it just print out the command
>that I sent to it.
>
>The PrinterDev is one those the printer vcx class that
>I place on the ole class
>
>>Try setting unattended mode with SYS(2335, 0) so that any UI generated by the DLL causes an error, write the error to a text file in your Error() proc. If there is an error, try to build your project as an exe instead.
>>
>>What type of object is PrinterDev?
>>
>>>Hi,
>>>
>>>I am using a printer VCX that allow to directly print to the printer
>>>and cause my POS drawer to open. It is working fine and so I port it
>>>into my OLE class for compiling into a DLL which does not work, insteads,
>>>it just cause it to print out my open drawer command
>>>
>>>Below are my code
>>>
>>>SET CLASSLIB TO MyPrinter ADDITIVE
>>>WITH THIS.PrinterDev
>>>
>>>
>>> * will select the default printer
>>> lPrinterName = SET("PRINTER", 3) <--- this is not working
>>> .cPrinterName = pvPrinterName <---- so I pass the printer name insteads
>>>
>>> .cDocName = "Open drawer Command"
>>>
>>> IF .oOPen()
>>>
>>> .oPrintMem(pvPrinterCmd)
>>> .oClose()
>>>
>>> ENDIF
>>>
>>>
>>>ENDWITH
>>>
>>>Please kindly advise me what is wrong with my code. Thank in advance
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform