Search found 13 matches: writefile

Return to advanced search

Idea got from " Mouse w/o Borders"

... 0, MAILSLOT_WAIT_FOREVER, NULL); 3. On the sending workstation, write the message to the mailslot: WriteFile(hMailslot, lpBuffer, dwBytesToWrite, &dwBytesWritten, NULL); 4. On the receiving workstation, read the message from the mailslot: ReadFile(hMailslot, ...
by Jimmy
Fri Feb 03, 2023 10:13 pm
 
Forum: FiveWin for Harbour/xHarbour
Topic: Idea got from " Mouse w/o Borders"
Replies: 2
Views: 209

Communication with ARM9

... 1 ), ( LPVOID ) hb_parc( 2 ), ( DWORD ) hb_parni( 3 ), &dw, NULL ); hb_retni( ( int ) dw ? dw : -1 ); } HB_FUNC( WRITECOMM ) { DWORD dw = 0; WriteFile( (HANDLE ) hb_parnl( 1 ), ( LPVOID ) hb_parc( 2 ), ( DWORD ) hb_parni( 3 ), &dw, NULL ); hb_retni( ( int ) dw ? dw : -1); } HB_FUNC( RAWIRON ...
by Surasak
Thu Jun 30, 2011 9:36 am
 
Forum: FiveWin for Pocket PC
Topic: Communication with ARM9
Replies: 6
Views: 1863

Re: WriteByte muy lento enviando por bluetooth

... la velocidad de impresion es aceptable. Hasta donde recuerdo Antes Utilizabamos WriteByte() y era bastante lento y la solucion fue usar la funcion WriteFile() del lenguaje C desde un PRAGMA mandando porciones de no mas de 80 caracteres a la vez, aunque ese modulo no lo hice yo. Puedes googlear ...
by Arturo Lopesoria
Thu Sep 09, 2010 12:32 am
 
Forum: FiveWin para Pocket PC
Topic: WriteByte muy lento enviando por bluetooth
Replies: 6
Views: 1599

... error:", oHttp:lastErrorMessage() QUIT ENDIF oHttp:Post(hQuery) cHtml := oHttp:readAll() oHttp:close() oDoc := THtmlDocument():new( cHtml ) oDoc:writeFile( "download.html" ) msgInfo("Look at the download.html in this directory.") RETURN
by cdmmaui
Mon Nov 24, 2008 7:18 pm
 
Forum: FiveWin for Harbour/xHarbour
Topic: Retrieving a web page via shell.explorer
Replies: 53
Views: 17464

Richard,

Then it means that WriteFile() is working ok :-(

Are you able to print those characters from Pocket Word ?
by Antonio Linares
Sat Feb 24, 2007 8:12 pm
 
Forum: FiveWin for Pocket PC
Topic: bluetooth print follow
Replies: 24
Views: 7929

Antonio

The printer is OK There is no setting on it.

When i send the txt file to the printer via windows mobile (send via bluetooth), the printout is OK.

The problem is i the writefile function

Richad
by Richard Chidiak
Sun Feb 18, 2007 7:39 pm
 
Forum: FiveWin for Pocket PC
Topic: Bluetooth print and Special characters
Replies: 37
Views: 10603

Richard,

It does not make a difference. We are placing an unsigned char into the buffer and WriteFile() should transmit an unsigned char.

Could you try to send the data to a different bluetooth device ? Maybe the difference comes from the receiver
by Antonio Linares
Sun Feb 18, 2007 6:07 pm
 
Forum: FiveWin for Pocket PC
Topic: Bluetooth print and Special characters
Replies: 37
Views: 10603

Antonio This is from Pocket pc Msdn Does it make any sense in this case ? You should note that the lpBuffer parameter of WriteFile is a LPCVOID (typedef for const void *). That means the lpBuffer parameter is type-agnostic. You could make it point to an array of chars, or you can make ...
by Richard Chidiak
Sun Feb 18, 2007 3:40 pm
 
Forum: FiveWin for Pocket PC
Topic: Bluetooth print and Special characters
Replies: 37
Views: 10603

Enrico,

From Windows headers: typedef void *HANDLE;

Its quite strange why WriteFile() is not able to manage unsigned chars...
by Antonio Linares
Sat Feb 17, 2007 2:51 pm
 
Forum: FiveWin for Pocket PC
Topic: Bluetooth print and Special characters
Replies: 37
Views: 10603

... ) // hComm, nChar --> lOk { DWORD cBytes; unsigned char ch = 233; // unsigned char ch = ( unsigned char ) hb_parnl( 2 ); hb_retl( ( BOOL ) WriteFile( ( void * ) hb_parnl( 1 ), &ch, 1, &cBytes, NULL ) ); } #pragma ENDDUMP
by Richard Chidiak
Sat Feb 17, 2007 9:20 am
 
Forum: FiveWin for Pocket PC
Topic: Bluetooth print and Special characters
Replies: 37
Views: 10603

Richard,

We are searching info for WriteFile() use to manage unsigned chars
by Antonio Linares
Sat Feb 17, 2007 7:53 am
 
Forum: FiveWin for Pocket PC
Topic: Bluetooth print and Special characters
Replies: 37
Views: 10603

Esperando conexión...

... npipe, ( void* ) buf, 1023, &bread, NULL ) ) { buf[ bread ] = 0; // Aca mostraria la cadena de caracteres // que recibio la pipe if( !WriteFile( npipe, ( void* )conf, strlen( conf ), &bread, NULL ) ){ // Error de escritura en pipe } } DisconnectNamedPipe( npipe ); #ifdef TRACE_ON ...
by goosfancito
Sat Oct 29, 2005 3:51 am
 
Forum: FiveWin para Harbour/xHarbour
Topic: Esperando conexión...
Replies: 0
Views: 808

Para Antonio Linhares (comm.c , BuildCommDCB, SetCommState)

... return ( int ) Com->hComm ; } int WriteComm( int idComDev, LPCVOID lpvBuf, int cbWrite ) { DWORD dw = 0; LPCOMMST Com = ( LPCOMMST )idComDev; WriteFile( Com->hComm, lpvBuf, ( DWORD )cbWrite, &dw, NULL ); return ( int ) dw ? dw : -1; } int ReadComm( int idComDev, LPVOID lpvBuf, int cbRead ...
by Gilson Lopes
Fri Oct 21, 2005 3:32 am
 
Forum: FiveWin para Harbour/xHarbour
Topic: Para Antonio Linhares (comm.c , BuildCommDCB, SetCommState)
Replies: 0
Views: 2006

Return to advanced search