for n = 1 to Len( cText )
MsgInfo( WriteByte( hOut, Asc( SubStr( cText, n, 1 ) ) ) )
next
Antonio Linares wrote:Richard,
Try this change:
- Code: Select all Expand view RUN
for n = 1 to Len( cText )
MsgInfo( WriteByte( hOut, Asc( SubStr( cText, n, 1 ) ) ) )
next
You should get .T. on each WriteByte() call
@ 2, 2 BUTTON "Send" ;
ACTION ( SendText( hOut, "Hello world!" ), CloseHandle( hOut ) ) SIZE 80, 20
ACTIVATE WINDOW oWnd
Antonio Linares wrote:Richard,
Try closing the handle after sending the bytes:
- Code: Select all Expand view RUN
@ 2, 2 BUTTON "Send" ;
ACTION ( SendText( hOut, "Hello world!" ), CloseHandle( hOut ) ) SIZE 80, 20
ACTIVATE WINDOW oWnd
Antonio Linares wrote:Richard,
You may use free http://www.symcod.com/BillSerialMonitor.zip to monitor the communication.
Jon Munro wrote:Richard
My application writes out via BT using similar code. Except I always use:
#define GENERIC_REWRITE 0xC0000000
instead.
Monitoring is a problem - the emulator is flaky and BillSerialMonitor doesn't like BT ports...
hth
Antonio Linares wrote:Richard,
Sorry, we don't know how to monitorize it yet.
Jon Munro wrote:Richard,
Perhaps its a flow control issue - is it using Xon/Xoff ?
hth
Jon Munro wrote:Richard,
Printing directly from FWPPC I presume that you will need to send all the necessary printer control commands - just like the old days. By using the Windows 'save to file' feature you may be able to pre-generate and capture what you need and then merge printer control fragments with your data and write it from FWPPC. Depending on printer memory and print volume you may not even need flow-control. Just a suggestion...hth.
Return to FiveWin for Pocket PC
Users browsing this forum: No registered users and 7 guests