Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
VFP DLL not working in VB
Message
De
19/07/2002 20:54:06
 
 
À
19/07/2002 11:12:37
Information générale
Forum:
Visual FoxPro
Catégorie:
Contrôles ActiveX en VFP
Divers
Thread ID:
00680304
Message ID:
00680708
Vues:
28
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
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform