Search found 21 matches: wlen

Return to advanced search

Re: Disable Advantage error message dialogs

oDB := DBServer {"d:\demo10.dbf", DBShared,, "AXDBFCDX"}
lReturn := AdsGetLastError( @dwError, pacError, @wLen)


if !AdsConnect60( "C:\", 2 )

cMsg = Space( 300 )

adsGetLastError( @cMsg )

winMsgInfo( cMsg ), "Error connecting do C:\" )

endif
by toninhofwi
Thu Dec 14, 2017 11:14 pm
 
Forum: FiveWin for Harbour/xHarbour
Topic: Disable Advantage error message dialogs
Replies: 12
Views: 1446

Re: Disable Advantage error message dialogs

... for determining if an error occurred while attempting to open a table: LOCAL oDB AS DBServer LOCAL dwError AS DWORD LOCAL pacError AS PSZ LOCAL wLen AS WORD LOCAL lReturn AS LONGINT pacError := MemAlloc( 200 ) wLen := 200 RDDSETDEFAULT("AXDBFCDX") oDB := DBServer {"d:\demo10.dbf", ...
by Massimo Linossi
Thu Dec 14, 2017 8:56 am
 
Forum: FiveWin for Harbour/xHarbour
Topic: Disable Advantage error message dialogs
Replies: 12
Views: 1446

Rutina para leer Gps

... #include <hbapi.h> // funcion de FW adaptada a FWPPC HB_FUNC (HEXTODEC) { LPBYTE pString = ( LPBYTE ) hb_parc( 1 ); WORD w = 0, wLen = hb_parclen( 1 ); BYTE bChar; LONG nHex = 0; while( w < wLen ) { bChar = pString[ w ] ; if ( bChar >= 97 ) bChar -= 39; // lowercase if ...
by Busmatic_wpb
Sat Jul 22, 2017 1:10 am
 
Forum: FiveWin para Harbour/xHarbour
Topic: Rutina para leer Gps
Replies: 1
Views: 961

Test GPS Error en encontrado

... #include <hbapi.h> // funcion de FW adaptada a FWPPC HB_FUNC (HEXTODEC) { LPBYTE pString = ( LPBYTE ) hb_parc( 1 ); WORD w = 0, wLen = hb_parclen( 1 ); BYTE bChar; LONG nHex = 0; while( w < wLen ) { bChar = pString[ w ] ; if ( bChar >= 97 ) bChar -= 39; // lowercase if ...
by Busmatic_wpb
Fri Jul 21, 2017 11:57 pm
 
Forum: FiveWin for Harbour/xHarbour
Topic: Test GPS Error en encontrado
Replies: 0
Views: 642

Re: Urgent : Listbox problem in FWH 15.09

In both functions DrawText() and DrawTextEx() there is a:

if ( wLen > 0 )

I want to check if that is the problem but I am unable to reproduce the error here
by Antonio Linares
Mon Sep 28, 2015 11:56 pm
 
Forum: FiveWin for Harbour/xHarbour
Topic: Urgent : Listbox problem in FWH 15.09
Replies: 25
Views: 4744

Re: Bug in TDialog title

Daniel,

Daniel Garcia-Gil wrote:
Enrico Maria Giordano wrote:CODE: SELECT ALL  EXPAND VIEW
wLen += iLenUnicode;


it seems to work fine. What is your opinion about this possible fix?


if work is fine ;-)


The problem is that I don't understand the code of cDlg2Chr() function very well so I found that "fix" with trial and error. :-)

EMG
by Enrico Maria Giordano
Mon Feb 17, 2014 10:56 am
 
Forum: Bugs report & fixes / Informe de errores y arreglos
Topic: Bug in TDialog title [Solved]
Replies: 35
Views: 6250

Re: Bug in TDialog title

Enrico Maria Giordano wrote:CODE: SELECT ALL  EXPAND VIEW
wLen += iLenUnicode;


it seems to work fine. What is your opinion about this possible fix?


if work is fine ;-)
by Daniel Garcia-Gil
Mon Feb 17, 2014 10:07 am
 
Forum: Bugs report & fixes / Informe de errores y arreglos
Topic: Bug in TDialog title [Solved]
Replies: 35
Views: 6250

Re: Bug in TDialog title

Daniel,

Daniel Garcia-Gil wrote:Enrico

try with

wLen += ( iLenUnicode * 2 ) + 1;


With

Code: Select all  Expand view
wLen += iLenUnicode;


it seems to work fine. What is your opinion about this possible fix?

EMG
by Enrico Maria Giordano
Sun Feb 16, 2014 3:35 pm
 
Forum: Bugs report & fixes / Informe de errores y arreglos
Topic: Bug in TDialog title [Solved]
Replies: 35
Views: 6250

Re: Bug in TDialog title

Daniel,

Daniel Garcia-Gil wrote:Enrico

try with

wLen += ( iLenUnicode * 2 ) + 1;


I now get:

hb_xrealloc can't reallocate memory

:-(

EMG
by Enrico Maria Giordano
Sun Feb 16, 2014 2:14 pm
 
Forum: Bugs report & fixes / Informe de errores y arreglos
Topic: Bug in TDialog title [Solved]
Replies: 35
Views: 6250

Re: Bug in TDialog title

Enrico

try with

wLen += ( iLenUnicode * 2 ) + 1;
by Daniel Garcia-Gil
Sun Feb 16, 2014 1:55 pm
 
Forum: Bugs report & fixes / Informe de errores y arreglos
Topic: Bug in TDialog title [Solved]
Replies: 35
Views: 6250

Re: GPF con hb_out.log

... con nosotros y que nadie habia visto aún :-) Muchisimas gracias! Este es el código correcto (probad a descomentar las 2 lineas en las que comparo wLen con wSize) y que usa la memoria exacta que necesita, ni más ni menos. Yo lo he estado probando y parece funcionar bien, os ruego a todos que lo ...
by Antonio Linares
Tue Sep 24, 2013 5:09 pm
 
Forum: FiveWin para Harbour/xHarbour
Topic: GPF con hb_out.log
Replies: 19
Views: 3399

Re: GPF con hb_out.log

... dio hace tiempo: //---------------------------------------------------------------------------// HB_FUNC( CDLG2CHR ) { BYTE bBuffer[ 250 ]; WORD wLen = sizeof( DIALOG_RES ); Desde tiempo inmemorial, de tamaño de buffer, en la funcion de arriba, tengo en vez del 250 un 850. Creo que lo puse por ...
by hmpaquito
Tue Sep 24, 2013 4:02 pm
 
Forum: FiveWin para Harbour/xHarbour
Topic: GPF con hb_out.log
Replies: 19
Views: 3399

Re: Selección múltiple de archivos

... ..\\fuentes\\main.prg 398: Declaration is not allowed here in functi on HB_FUN_CGETFILE Error E2451 ..\\fuentes\\main.prg 412: Undefined symbol 'wLen' in function HB_FU N_CGETFILE Error E2314 ..\\fuentes\\main.prg 412: Call of nonfunction in function HB_FUN_CG ETFILE Error E2314 ..\\fuentes\\main.prg ...
by quique
Thu Mar 14, 2013 3:34 am
 
Forum: FiveWin para Harbour/xHarbour
Topic: Selección múltiple de archivos
Replies: 10
Views: 2095

Problemas al crear la libreria TWBROWSE

... LONG nClrLine, BOOL bFooter, BOOL bSelect, PCLIPVAR pFont, BOOL bDrawFocusRect ) { RECT box, wholebox, rctadj; int iMaxRight = rct->right; WORD wLenJust = 0 ; #ifndef __HARBOUR__ WORD wLen = _VARRAYLEN( pAtext ); CLV_WORD lJustify; #else WORD wLen = hb_arrayLen( pAtext ); PHB_ITEM uElem = hb_itemNew( ...
by ander7319
Fri Jan 04, 2013 9:55 am
 
Forum: FiveWin para Harbour/xHarbour
Topic: Problemas al crear la libreria TWBROWSE
Replies: 6
Views: 2842

Error al compilar TWBROWSE xHarbour build 1.2.1 y FWH 11.01

... LONG nClrLine, BOOL bFooter, BOOL bSelect, PCLIPVAR pFont, BOOL bDrawFocusRect ) { RECT box, wholebox, rctadj; int iMaxRight = rct->right; WORD wLenJust = 0 ; #ifndef __HARBOUR__ WORD wLen = _VARRAYLEN( pAtext ); CLV_WORD lJustify; #else WORD wLen = hb_arrayLen( pAtext ); PHB_ITEM uElem = hb_itemNew( ...
by alex_cyr
Sat Jul 09, 2011 2:11 am
 
Forum: FiveWin para Harbour/xHarbour
Topic: Error al compilar TWBROWSE xHarbour build 1.2.1 y FWH 11.01
Replies: 7
Views: 2613
Next

Return to advanced search