Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
VFP DLL not working in VB
Message
De
23/07/2002 02:55:09
 
 
À
22/07/2002 10:34:39
Information générale
Forum:
Visual FoxPro
Catégorie:
Contrôles ActiveX en VFP
Divers
Thread ID:
00680304
Message ID:
00681486
Vues:
27
Hi,

I will sent my code for you to had a look, hopefully you can
help to find the bugs. Thank in advance.

>I would take a look at the class method code if it's available. Or, try calling the Open() method in the command window without setting a printer, to see if that causes a printer dialog to come up.
>
>When you are logging the error, also write the values of all relevant properties of the object, like cPrinterName. If it works as an EXE, I would suspect that something is generating a dialog of some sort. After setting Sys(2335,0) the error produced would be "user interface operation not allowed at this time".
>
>>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