Search found 58 matches: getlasterror

Return to advanced search

Re: Everything under Fivewin

You could call Everything_GetLastError() to check what it returns
by Antonio Linares
Mon Nov 14, 2022 1:05 pm
 
Forum: FiveWin for Harbour/xHarbour
Topic: Everything under Fivewin
Replies: 17
Views: 1086

Re: Everything under Fivewin

hi, i have build these DLL FUNCTION for Everything32.DLL (32 Bit) DLL FUNCTION Everything_SetSearchW(cText AS LPSTR )      AS VOID PASCAL LIB "Everything32.dll"DLL FUNCTION Everything_SetSearchA(cText AS LPSTR )      AS VOID PASCAL LIB "Everything32.dll"DLL FUNCTI...
by Jimmy
Mon Nov 14, 2022 11:28 am
 
Forum: FiveWin for Harbour/xHarbour
Topic: Everything under Fivewin
Replies: 17
Views: 1086

Re: Printing RTF using CreateTextServices()

When we use SF_RTF it does not call the callback and does nothing. GetLastError() returns 2 which means "file not found" (???) and dwError remains zero. If we replace SF_RTF with SF_TEXT then it works but it is processed as standard text and not ...
by Antonio Linares
Sun Feb 06, 2022 10:03 am
 
Forum: FiveWin for Harbour/xHarbour
Topic: Printing RTF using CreateTextServices()
Replies: 6
Views: 641

Checking GetLastError() from C

Sometimes we have the need to check the value that returns Windows GetLastError(), so this code is required: void ShowErrorTxt( DWORD dwError ){   LPVOID lpMsgBuf;   char buffer[ 6 ];   FormatMessage( FORMAT_MESSAGE_ALLOCATE_BUFFER ...
by Antonio Linares
Sun Feb 06, 2022 8:42 am
 
Forum: FiveWin for Harbour/xHarbour
Topic: Checking GetLastError() from C
Replies: 0
Views: 274

Re: ExtCreatePen

... Que valor te devuelve la función ? De haber un error siempre puedes llamar a la función GetErrMsg() que te devuelve la descripción del valor GetLastError() del API de Windows
by Antonio Linares
Mon Sep 06, 2021 3:54 pm
 
Forum: FiveWin para Harbour/xHarbour
Topic: ExtCreatePen
Replies: 10
Views: 1191

Re: llamar funciones de DLL

... [in] int ) STDCALL dispatch FUNC VARIANT_BOOL ModifyPrivilege( [in] int, [in] int, [in] int, [in] int, [in] int ) STDCALL dispatch FUNC void GetLastError( [out] PTR ) STDCALL dispatch FUNC VARIANT_BOOL GetEnrollData( [in] int, [in] int, [in] int, [in] int, [out] PTR, [out] PTR, [out] PTR ...
by Antonio Linares
Sat Feb 01, 2020 7:55 am
 
Forum: FiveWin para Harbour/xHarbour
Topic: llamar funciones de DLL
Replies: 20
Views: 4595

Re: New FTDN March/Marzo 2019 (FWH 19.03)

... función GetErrMsg( [<nLastError>] ) --> cSystemErrorDescription ahora soporta un parámetro opcional con el error generado por la función GetLastError(). Si no se suministra el parámetro, se utiliza el devuelto por GetLastError(). * Nuevo: DATA nBarHeight --> Permite modificar la altura ...
by Antonio Linares
Mon Apr 08, 2019 8:49 pm
 
Forum: WhatsNew / Novedades
Topic: New FTDN March/Marzo 2019 (FWH 19.03)
Replies: 2
Views: 2827

New FTDN March/Marzo 2019 (FWH 19.03)

... function GetErrMsg( [<nLastError>] ) --> cSystemErrorDescription now supports an optional parameter with the error code generated by GetLastError(). If no parameter is suplied then GetLastError() is used. * New: DATA nBarHeight --> allow modify height of folders CLASS TTabs * Enhancement: ...
by Antonio Linares
Mon Apr 08, 2019 11:20 am
 
Forum: WhatsNew / Novedades
Topic: New FTDN March/Marzo 2019 (FWH 19.03)
Replies: 2
Views: 2827

Re: Error FiveWin/3 Cannot create Dialog Box:

Please modify dialog.prg this way:      if ::nResult == 65535         MsgInfo( GetLastError() )         CreateDlgError( Self )      endif Lets check the generated specific error We ...
by Antonio Linares
Sat Mar 23, 2019 8:44 am
 
Forum: FiveWin for Harbour/xHarbour
Topic: Error FiveWin/3 Cannot create Dialog Box:
Replies: 27
Views: 3947

Re: Harbour for the web

... "ADSDBE", cRoot ) // check if we are connected to the ADS server IF ( ! oSession:isConnected( ) ) _AdsErr( LTRIM( STR( oSession:getLastError(), 9 ) ) ) RETURN Void ENDIF // use FPT/CDX compatible files DbeInfo( COMPONENT_DATA, ADSDBE_TBL_MODE , ADSDBE_CDX) DbeInfo( COMPONENT_ORDER, ...
by cdmmaui
Sun Aug 12, 2018 12:05 pm
 
Forum: FiveWin for Harbour/xHarbour
Topic: Harbour for the web
Replies: 12
Views: 4634

Re: funciones de FWH y Harbour en un archivo .txt

... GetDefaultPrinter()->cPrinterName GetE(<cEnvVar>)->cString GetEnv(<cEnvironmentVariable>)->cString GetLastError()->nErrorCode GetPairLen(<cColorString>,<nPos>)->nLength GetPairPos(<cColorString>,<nPos>)->nAbsPos GetPrec()->nDecimalPlaces ...
by carlos vargas
Sat Oct 21, 2017 8:44 pm
 
Forum: FiveWin para Harbour/xHarbour
Topic: funciones de FWH y Harbour en un archivo .txt
Replies: 7
Views: 5700

Re: funciones de FWH y Harbour en un archivo .txt

... FtoC Fv FWordCount FWrite GetActiveObject GetClearA GetClearB GetClrBack GetClrFore GetClrPair GetCurrentThread GetDefaultPrinter GetE GetEnv GetLastError GetPairLen GetPairPos GetPrec GetPrinters GetProcAddress GetRegistry GetVolInfo GT_AsciiSum GT_Ascpos GT_AtDiff GT_CharEven GT_CharMix ...
by carlos vargas
Sat Oct 21, 2017 8:43 pm
 
Forum: FiveWin para Harbour/xHarbour
Topic: funciones de FWH y Harbour en un archivo .txt
Replies: 7
Views: 5700

Re: Problema creando aplicación

GetLastError() lo puedes implementar asi:

#include <windows.h>
#include <hbapi.h>

HB_FUNC( GETLASTERROR )
{
hb_retnl( GetLastError() );
}

Para el error de LockResource usa este flag al enlazar:

/FORCE:MULTIPLE
by Antonio Linares
Tue May 31, 2016 7:34 am
 
Forum: FiveWin para Pocket PC
Topic: Problema creando aplicación
Replies: 7
Views: 5092

Re: Problema creando aplicación

... Aquí tienes más información. https://msdn.microsoft.com/en-us/library/windows/desktop/dd145088%28v=vs.85%29.aspx Bueno, Lo de GetLastError() no lo entiendo, aunque si lo defino ya no da ese error. Pero lo que no me has contestado y es más importante, es por qué aparece esto ...
by jmartial
Tue May 31, 2016 7:09 am
 
Forum: FiveWin para Pocket PC
Topic: Problema creando aplicación
Replies: 7
Views: 5092

Re: Problema creando aplicación

Antonio, GetLastError(), no sé por qué pero he tenido que crear la función en C. Y setrop2 también, aunque esa creo que fwppc no la traía, pero después de quitar todos los errores, no me termina de linkar con el siguiente error: ...
by jmartial
Mon May 30, 2016 4:48 pm
 
Forum: FiveWin para Pocket PC
Topic: Problema creando aplicación
Replies: 7
Views: 5092
Next

Return to advanced search