>>Well, I missed the beginning of this thread, so I can't find the original content, but as for the thread title...you can send a binary file (such as a pcl file) by using : 'copy
lpt1 /b'.
>
>I need two separate command: to cut paper and open cash drawer for
>POS system.
>
>Thus, for each buyer in shop, the DOS window flashes
>two times? It also slows down printing which is already slow!!
>
>If shop owner sees this, it will
>throw my program away immediately!!!!
For calling DOS routines, I use this:
Proc DosCall
Lpara cmdl
* UINT WinExec(
* LPCSTR lpszCmdLine, // address of command line
* UINT fuCmdShow // window style for new application
* )
Declare long WinExec in kernel32.dll string lpszCmdLine, integer fuCmdShow
if type("cmdl")#"C"
cmdl="Echo nothing>nul"
endif
ret=WinExec(@cmdl, 0)
return ret
Now window, nothing, just if it gives you back a number less than 32, it's an error; it usually gives you above 2000 or more, which is OK.