Hi,
There is not UI in my code, it work fine when I tested it
as exe, I using the RAW printer vcx class from UT to open
my POS drawer, below are my code, the set(printer,3) is not
working, plus the code below just cause my printer command
to be printed out insteads of opening my POS drawer
LPARAMETER pvPrinterName, pvPrtCmd
* THIS.oPrnDev.cPrinterName = set('printer', 3) <-- not working
THIS.oPrnDev.cPrinterName = pvPrinterName
THIS.oPrnDev.cDocName = "Open Drawer Command"
If THIS.oPrnDev.oOPen()
THIS.oPrnDev.oPrintMem(lStr)
THIS.oPrnDev.oClose()
Endif
>Are there any UI commands in the VFP code? Does it work if you build it into a VFP Exe? What's the relevant VFP code?
>
>>Hi,
>>
>>I had tested my code to be working before converting it into a VFP DLL
>>file for use by my VB application.
>>
>>My code of opening the POS drawer is working fine in VFP
>>Then I converted it into a VFP DLL for use by my VB.
>>
>>However, when I called it from my VB application, it just
>>print out my open drawer command insteads of opening my POS
>>drawer as it did in VFP, why is the DLL not consistence ?
>>
>>Any help or advise in this area.
>>Thank in advance.
Best Regards
Virusim