BMC international fiscal printer : xharbour
This is a discussion on BMC international fiscal printer within the xharbour forums in Programming Languages category; Luiz, I had copied the file dllcall.c and commented out the line 518, wich generates the messagebox. It is clear that there is an error, in fact, calling directly as you suggested I get a GPF. Now the program is working and the printer too, but there is some obscure point to solve. I think the trouble is for returning parameters but I am not sure. Do you have any suggestion? Marcelo Anelli On 4 jun, 10:51, marceloanelli <marcelo.ane...@gmail.com> wrote: > The exact error using the IMPORT command is: > > DllExec ynaCall() failed! > Se está ejecutando la operación ...
![]() |
| | LinkBack | Thread Tools |
|
#11
| |||
| |||
| I had copied the file dllcall.c and commented out the line 518, wich generates the messagebox. It is clear that there is an error, in fact, calling directly as you suggested I get a GPF. Now the program is working and the printer too, but there is some obscure point to solve. I think the trouble is for returning parameters but I am not sure. Do you have any suggestion? Marcelo Anelli On 4 jun, 10:51, marceloanelli <marcelo.ane...@gmail.com> wrote: > The exact error using the IMPORT command is: > > DllExec ynaCall() failed!> Se está ejecutando la operación E/S superpuesta. > > Maybe correspond to line 506 of dllcall.c > > Regards, > Marcelo Anelli |
|
#12
| |||
| |||
| Hi Alex, My situations is under vb, the demo runs I had made, returns the status and error values from the call, but under xharbour no returns are made. Is mainly sure that the dll is giving some errors after processing the commands to the fiscal printer and then return with error. My windows is in spanish, but seems that some I/O functions are executed in a overlapped or superposed form. The manufacturer is not giving help about this point. Just say close all com ports: I need between 3 to 8! for working with all peripherals. The other solutions means day of code using direct protocol. I will investigate with the "modified" dllcall to see if I can obtain a better work. Unfortunately my c skill are some lower. Regards, Marcelo Anelli Linux News wrote: > "marceloanelli" <marcelo.anelli@gmail.com> wrote in message > news:1180968715.443546.207060@n4g2000hsb.googlegroups.com... > The exact error using the IMPORT command is: > > > >>DllExec ynaCall() failed!>>Se está ejecutando la operación E/S superpuesta. > > >>Maybe correspond to line 506 of dllcall.c > > > This code displays a MessageBox with results of GetLastError(), which is > possibly set by any Windows function. It does not necessarily mean that the > DLL call failed, and probably there is no problem with the IMPORT command. > > Sorry to say, it probably does mean you have a problem somewhere else. > > It is hard to be clear, but I mean that if you were using VB you would > probably still have the error. > > Regards > Alex Strickland > > |
|
#13
| |||
| |||
| Marcelo, > LONG error; > LPSTR Buffer = hb_parc( 3 ) ; > > _SENDNCMD pFunc; > > pFunc = (_SENDNCMD) GetProcAddress(handle, "SendNCmd"); > hb_retnl( pFunc( status, error, Buffer ) ); > hb_stornl( status, 1 ); > hb_stronl( error, 2 ); I suppose you want get error from SendNCmd call ? Then try: typedef LONG (WINAPI * _SENDNCMD)(LONG status, LONG * error, LPSTR buffer); and pFunc( status, &error, Buffer ) Regards, Saulius |
|
#14
| |||
| |||
| Saulius, Thanks a lot! I need to learn C!! now working without gpf using c calling directly. Marcelo Anelli On 5 jun, 04:05, "Saulius" <Saul...@NOSPAM.com> wrote: > Marcelo, > > > LONG error; > > LPSTR Buffer = hb_parc( 3 ) ; > > > _SENDNCMD pFunc; > > > pFunc = (_SENDNCMD) GetProcAddress(handle, "SendNCmd"); > > hb_retnl( pFunc( status, error, Buffer ) ); > > hb_stornl( status, 1 ); > > hb_stronl( error, 2 ); > > I suppose you want get error from SendNCmd call ? > Then try: > typedef LONG (WINAPI * _SENDNCMD)(LONG status, LONG * error, LPSTR buffer); > and > pFunc( status, &error, Buffer ) > > Regards, > Saulius |
|
#15
| |||
| |||
| Hi. I am having problems with this printer too. I am using FPCTRL.DLL with no problem at all, but for the UPLOADREPORTCMD function. I am trying to use this function to download Z report information to a text file, using this syntax: nResult = UPLOADREPORTCMD(status, error, "U2S"+today+today,"c:\temp\out.txt") The command runs with no error and file is created, but it contains just the following text: "@\" I had tried using "U0Z" command instead with same result. Any ideas? What I am doing wrong? |
|
#16
| |||
| |||
| Hi there, I just need a basic step by explanation of what I need in order to be able to print on BMC fiscal printer like for example where I can get the dll from or if i can develop the dll myself what i need to know to develop the dll if i have to develop it what the dll is supposed to do how I can call the dll I am using vb2005 I would appreciate any kind hand thank you |
![]() |
« Previous Thread
|
Next Thread »
| Thread Tools | |
| |
| ||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Printer-Looking for good printer that prints up to 13 x19 images,any suggestions. TIA | usenet | Adobe Photoshop | 1 | 08-29-2007 10:17 AM |
| Example for working with Fiscal printer BMC | usenet | xharbour | 0 | 06-06-2007 10:00 AM |
| How to give print command to netwok printer and default printer togather | usenet | basic.visual | 5 | 06-01-2007 11:38 AM |
| DLL Impressora fiscal Daruma | usenet | xharbour | 6 | 04-02-2007 07:07 AM |
| Win32::Printer::Enum::Printer($server) | usenet | Perl | 10 | 07-19-2005 10:44 AM |
All times are GMT -5. The time now is 08:46 AM.


ynaCall() failed!