Search found 188 matches: cbuffer

Return to advanced search

Re: Using Microsoft AI Phi-2 from FWH

... - HB_DYN_CTYPE_BOOL_PTR - HB_DYN_CTYPE_VOID - HB_DYN_CTYPE_VOID_PTR - HB_DYN_CTYPE_STRUCTURE - HB_DYN_CTYPE_STRUCTURE_PTR Source example: cBuffer := SPACE (1024) nCopyCharacters := HMG_CallDLL ("USER32.DLL", HB_DYN_CTYPE_INT, "GetWindowText", Win_1.HANDLE, @cBuffer, ...
by Jimmy
Thu Dec 21, 2023 12:11 pm
 
Forum: FiveWin for Harbour/xHarbour
Topic: Using Microsoft AI Phi-2 from FWH
Replies: 51
Views: 8330

Re: Error al leer un dll

... nMode AS _INT ) AS _INT PASCAL FROM "OpenComFiscal" LIB "winfis32.dll" DLL32 FUNCTION MandaPaqueteFiscal( nHandler AS _INT, cBuffer AS LPSTR ) AS _INT PASCAL FROM "MandaPaqueteFiscal" LIB "winfis32.dll" DLL32 FUNCTION UltimaRespuesta( nHandler AS _INT, ...
by Antonio Linares
Sat Apr 22, 2023 10:11 am
 
Forum: FiveWin for Harbour/xHarbour
Topic: Error al leer un dll
Replies: 19
Views: 1499

Conexion FTP TSL

... static function SendFiles( cSource, cTarget, nBufSize, oFTP ) local hSource local cBuffer := Space( nBufSize ) local nBytes local oFile if ! File( cSource ) MsgStop( "File not found: " + cSource ) Return .f. endif hSource ...
by servicomver
Wed Jan 25, 2023 10:45 pm
 
Forum: FiveWin para Harbour/xHarbour
Topic: Conexion FTP TSL
Replies: 7
Views: 834

abnornal program termination

... LOCAL I Local nBaudeRate:=9600 Local ndatabits :=8 Local nparity :=0 //0NONE, 1 Odd, 2Even Local nstopbit :=1 Local cRead :="" Local cBuffer :=SPACE(512) Local cRes :="" DEFAULT cPortName:="COM3" IF !Init_Port( cPortName, nBaudeRate , nDatabits , nParity , nStopbit ...
by jnavas
Mon Oct 03, 2022 4:29 pm
 
Forum: FiveWin para Harbour/xHarbour
Topic: abnornal program termination
Replies: 7
Views: 629

Re: Codigo QR directamente en fichero .JPG o .PNG

ArgConsulting

Quizás el FW_SaveImage( cBuffer, cFile ) te ayude.
by acuellar
Mon Aug 16, 2021 9:47 pm
 
Forum: FiveWin para Harbour/xHarbour
Topic: Codigo QR directamente en fichero .JPG o .PNG
Replies: 5
Views: 657

Re: no envia el archivo, que hago mal???

Buenos dias

El comando FOpen() abre el archivo. Nada mas.

Fseek() posiciona el puntero de lectura.

Dentro de tu bucle no cambias el puntero con otro FSeek()
Como FRead() te devuelve el numero de bytes ledidos, yo comprobaría antes de escribir si cBuffer tiene contenido.

Saludos
by JESUS MARIN
Fri Apr 30, 2021 9:37 am
 
Forum: FiveWin para Harbour/xHarbour
Topic: no envia el archivo, que hago mal???
Replies: 8
Views: 801

Re: sql server guardar y mostrar imagen

... in your table ... this is my code .. note this line is the key to the code oRsCh:Fields("notes"):AppendChunk( VTArrayWrapper():New( 17, cBUFFER ) ) //------------------------------Static Func _Doit( oRsTrav, oRsCh, cPROJECTEID, cPath,oDLg )LOCAL cFILENAME, nSTRING, nLEN, nSTART, ...
by Rick Lipkin
Mon Sep 21, 2020 12:40 pm
 
Forum: FiveWin for Harbour/xHarbour
Topic: sql server guardar y mostrar imagen
Replies: 10
Views: 1705

Conexión con balanza a través del puerto RS232 (SOLUCIONADO)

... "Capturando el peso de la báscula...    [ Salir: tecla ESC ]" OF oDlg   ACTIVATE DIALOG oDlg NOWAIT CENTER   Inkey(1) endif cBuffer:=Space(100) nBytes := ReadComm (nComm,@cBuffer) If FlushComm( nComm, 0 ) != 0   nError = GetCommError( nComm )  ...
by Loren
Tue Mar 10, 2020 8:07 pm
 
Forum: FiveWin para Harbour/xHarbour
Topic: Conexión con balanza a través del puerto RS232 (SOLUCIONADO)
Replies: 3
Views: 757

Re: Strange characters in TFtp:directory()

... retrieve the filename up to the null character only. method Directory( cMask ) CLASS TFtp    local hFTPDir, aFiles := {}    local oWin32FindData, cBuffer    DEFAULT cMask := "*.*"    STRUCT oWin32FindData       MEMBER nFileAttributes  AS DWORD       MEMBER nCreationTime    AS STRING ...
by hua
Tue Aug 20, 2019 8:01 am
 
Forum: FiveWin for Harbour/xHarbour
Topic: Strange characters in TFtp:directory()
Replies: 4
Views: 680

Hacking Android (pipes) stdout and stderr redirection

... JSON. ----8<---- REQUEST HB_GT_STD_DEFAULT PROCEDURE Main() LOCAL hProcess LOCAL hStdIn LOCAL hStdOut LOCAL hStdErr LOCAL nSize := 1024 LOCAL cBuffer LOCAL nReadedErr LOCAL nReadedOut LOCAL hInput := { => } LOCAL n LOCAL hPerson LOCAL hDecode LOCAL cInput LOCAL cError := "" LOCAL ...
by Antonio Linares
Mon Mar 04, 2019 7:23 am
 
Forum: Utilities / Utilidades
Topic: Hacking Android (pipes) stdout and stderr redirection
Replies: 0
Views: 525

Re: Saving photos

... the VarBinaryMax field .. Note the key here is the AppendChunk method .. oRsCh:Fields("notes"):AppendChunk( VTArrayWrapper():New( 17, cBUFFER ) ) //------------------------------Static Func _Doit( oRsProj, oRsCh, cPROJECTEID, cPath )LOCAL cFILENAME, nSTRING, nLEN, nSTART, SAYING, ...
by Rick Lipkin
Fri Mar 01, 2019 10:46 pm
 
Forum: FiveWin for Harbour/xHarbour
Topic: Saving photos
Replies: 7
Views: 1535

Re: Fatturazione Elettronica

quindi #include "FiveWin.ch" #include "FileIo.ch" FUNCTION FatturazioneElettronica() LOCAL cBuffer LOCAL nHandle nHandle := fCreate( cXmlFile, FC_NORMAL ) fWrite( nHandle, [<?xml version="1.0" encoding="UTF-8" ?>] + CRLF ) fWrite( ...
by Silvio.Falconi
Tue Dec 04, 2018 3:26 pm
 
Forum: All products support
Topic: Fatturazione Elettronica
Replies: 91
Views: 63509

Re: Read Com port

... TIMER oTmr INTERVAL 6000 ACTION (BytesAtPort( nComm),oLbx:Refresh()) OF oWnd ACTIVATE TIMER oTmr function BytesAtPort( nComm, nStatus ) local cBuffer:=space(18) ReadComm( nComm, @cBuffer ) select RAWPOIDS append blank replace data with cBuffer return nil
by dutch
Wed Oct 03, 2018 7:51 am
 
Forum: FiveWin for Harbour/xHarbour
Topic: Read Com port
Replies: 13
Views: 2607

Re: Read Com port

... TIMER oTmr INTERVAL 6000 ACTION (BytesAtPort( nComm),oLbx:Refresh()) OF oWnd ACTIVATE TIMER oTmr function BytesAtPort( nComm, nStatus ) local cBuffer:=space(18) ReadComm( nComm, @cBuffer ) select RAWPOIDS append blank replace data with cBuffer return nil
by Jack
Wed Oct 03, 2018 5:50 am
 
Forum: FiveWin for Harbour/xHarbour
Topic: Read Com port
Replies: 13
Views: 2607

Re: Read Com port

Hi Jack, I don't use the library you're using, so let's go for trial... The Readcomm function expects Cbuffer as: A string variable supplied by reference where ReadComm() will place the read bytes. The length of the initial supplied value specifies the wished number of bytes ...
by Diego Decandia
Sat Sep 29, 2018 3:39 pm
 
Forum: FiveWin for Harbour/xHarbour
Topic: Read Com port
Replies: 13
Views: 2607
Next

Return to advanced search