Search found 58 matches: getlasterror

Return to advanced search

... If the function succeeds, the return value is nonzero. If the function fails, the return value is zero. To get extended error information, call GetLastError. See Also OpenPrinter
by Antonio Linares
Tue Jul 17, 2007 6:57 am
 
Forum: FiveWin for Harbour/xHarbour
Topic: Printer properties config
Replies: 3
Views: 808

... and checked these values: MsgInfo( oFTP:hFTP ) MsgInfo( oFile:hFile ) they look ok, but InternetWriteFile() (oFile:Write()) is returning 0x87 for GetLastError(): ERROR_INVALID_PARAMETER We don't know why it reports such value :-( Have you tried to use FtpPutFile() instead of sending blocks ?
by Antonio Linares
Mon Jan 29, 2007 1:13 pm
 
Forum: FiveWin for Pocket PC
Topic: tftp class
Replies: 62
Views: 25320

... rtrim(rem_archivo),iif(lBinary,INTERNET_FLAG_TRANSFER_BINARY,INTERNET_FLAG_TRANSFER_ASCII), 0 ) nRet:=0 msgalert("enviado") ELSE nRet:=GetLAstError() msgalert("error") ENDIF INTERNETCLOSEHANDLE( hConnect ) INTERNETCLOSEHANDLE( hInternet ) RETURN nRet
by prm_pedro
Sat Nov 25, 2006 2:13 pm
 
Forum: FiveWin para Pocket PC
Topic: COMO UTILIZAR EL FTP
Replies: 5
Views: 1443

... rtrim(rem_archivo),iif(lBinary,INTERNET_FLAG_TRANSFER_BINARY,INTERNET_FLAG_TRANSFER_ASCII), 0 ) nRet:=0 msgalert("enviado") :oops: ELSE nRet:=GetLAstError() //AQUIE ES EN DONDE ENTRA msgalert("error") ENDIF INTERNETCLOSEHANDLE( hConnect ) INTERNETCLOSEHANDLE( hInternet ) RETURN nRet
by prm_pedro
Thu Nov 23, 2006 2:34 pm
 
Forum: FiveWin para Pocket PC
Topic: COMO UTILIZAR EL FTP
Replies: 5
Views: 1443

Elías,

Si te aparece un 6 debe ser el resultado de GetLAstError().

Has buscado que significa ese código de error ?
by Antonio Linares
Fri Nov 17, 2006 4:55 pm
 
Forum: FiveWin para Pocket PC
Topic: Como conectar y transferir archivos por wifi
Replies: 16
Views: 4899

... hConnect, rtrim(loc_archivo), rtrim(rem_archivo),iif(lBinary,INTERNET_FLAG_TRANSFER_BINARY,INTERNET_FLAG_TRANSFER_ASCII), 0 ) nRet:=0 ELSE nRet:=GetLAstError() ENDIF INTERNETCLOSEHANDLE( hConnect ) INTERNETCLOSEHANDLE( hInternet ) RETURN nRet FUNCTION Traer() LOCAL nRet LOCAL hInternet, hConnect ...
by Elias Torres
Fri Nov 17, 2006 1:15 pm
 
Forum: FiveWin para Pocket PC
Topic: Como conectar y transferir archivos por wifi
Replies: 16
Views: 4899

Hi, I got to set up this way below, I think and the road... This giving this mistake in the return of the function GetLastError () =12007: If HttpSendRequest(hRequest, "",0,sBuffer,Alltrim(Str(Len(sBuffer)))) == 0 ? "error3",GetLastError () Endif ERROR_INTERNET_NAME_NOT_RESOLVED ...
by clemerson
Wed Apr 05, 2006 6:22 pm
 
Forum: FiveWin for Harbour/xHarbour
Topic: SOAP message
Replies: 3
Views: 2049

... if (hftp:=InternetConnect(onet,"209.99.228.215",21,"dbfarma","farmacia",1,2,0)) == 0 msginfo("Sorry can't connect to FTP site:"+str(getlasterror())) if Intrespinf(@n1,message,@n2) msginfo("message:="+message) endif else // Change the filename by the one you want to get from the FTP ...
by carlosortiz
Mon Apr 03, 2006 11:57 pm
 
Forum: FiveWin para CA-Clipper
Topic: Acceder a un Ftp por cable modem
Replies: 7
Views: 2505

... If the function succeeds, the return value is nonzero. If the function fails, the return value is zero. To get extended error information, call GetLastError. Remarks The cursor is a shared resource. If an application confines the cursor, it must release the cursor by using ClipCursor before ...
by Antonio Linares
Sat Mar 25, 2006 12:41 pm
 
Forum: FiveWin para Harbour/xHarbour
Topic: Capturar ratón sobre un diálogo
Replies: 5
Views: 1609

... the return value is a handle to the specified module. If the function fails, the return value is NULL. To get extended error information, call GetLastError. Remarks The returned handle is not global or inheritable. It cannot be duplicated or used by another process. The GetModuleHandle function ...
by Enrico Maria Giordano
Fri Feb 03, 2006 2:35 pm
 
Forum: FiveWin for CA-Clipper
Topic: Detect other application running
Replies: 5
Views: 1900

... pero no has incluido ningún fichero de cabecera (.H) en donde este su prototipo, ó que la estás escribiendo mal: WINBASEAPI DWORD WINAPI GetLastError( VOID ); esta se encuentra en winbase.h. Busca en los ficheros .H del compilador C que estés usando.
by Antonio Linares
Sat Nov 19, 2005 8:48 am
 
Forum: FiveWin para Harbour/xHarbour
Topic: ERROR if ( GetLastError( ) == ERROR_BROKEN_PIPE )
Replies: 2
Views: 684

ERROR if ( GetLastError( ) == ERROR_BROKEN_PIPE )

Amigos:

cuando enlazo con este programa en c que lo quiero utilizar desde harbour me tira el siguiente error:

Warning W8065 Source\pipesrv.c 77: Call to function 'getLasterr' with no prototype in function Conectarse

Porque? varias veces me aparece la leyenda "prototype in funcion..."

Gracias
by goosfancito
Fri Nov 18, 2005 6:56 pm
 
Forum: FiveWin para Harbour/xHarbour
Topic: ERROR if ( GetLastError( ) == ERROR_BROKEN_PIPE )
Replies: 2
Views: 684

Re: Pocket PC serial number

... pDevID, sizeof( DEVICE_ID ), &dwBytesReturned ); wSize = pDevID->dwSize; free(pDevID); if( (FALSE != fRes) || (ERROR_INSUFFICIENT_BUFFER != GetLastError())) return FALSE; pDevID = (DEVICE_ID*)malloc(wSize); memset(pDevID, 0, sizeof(wSize)); pDevID->dwSize = wSize; fRes = KernelIoControl( ...
by claudio.driussi
Wed Nov 16, 2005 8:32 am
 
Forum: FiveWin for Pocket PC
Topic: Pocket PC serial number
Replies: 10
Views: 4227
Previous

Return to advanced search