Search found 41 matches: hinternet

Return to advanced search

Re: FTP with Harbour / MSVC / FWH issues

Another , how use ftp over TLS ? hLib = LOADLIBRARY( "wininet.dll" ) hInternet := INETOPEN( "Anystring", 1, 0, 0, 0 ) hConnect := INETCONNECT( hInternet, "www.xtech.com.cn",21, "xxx@xtech.com.cn", "erp6.5", 1, 0,0 ...
by ShumingWang
Wed Jun 27, 2018 8:22 am
 
Forum: FiveWin for Harbour/xHarbour
Topic: FTP with Harbour / MSVC / FWH issues
Replies: 8
Views: 2226

Re: MSVC 2017 Try

... *); internet.prg(526): note: vea la declaraci¢n de 'hb_fopen' internet.prg(538): warning C4312: 'conversi¢n de tipo': conversi¢n de 'long' a 'HINTERNET' de mayor tama¤o internet.prg(597): warning C4312: 'conversi¢n de tipo': conversi¢n de 'long' a 'HINTERNET' de mayor tama¤o Microsoft (R) ...
by Verhoven
Mon Apr 17, 2017 8:52 am
 
Forum: FiveWin for Harbour/xHarbour
Topic: MSVC 2017 Try
Replies: 67
Views: 7706

Re: MSVC 2017 Try

... de 'HB_LONGLONG' a 'DWORD'; posible p‚rdida de datos internet.prg(387): warning C4311: 'conversi¢n de tipo': truncamiento de puntero de 'HINTERNET' a 'LONG' internet.prg(387): warning C4302: 'conversi¢n de tipo': truncamiento de 'HINTERNET' a 'LONG' internet.prg(399): warning C4244: 'argumento': ...
by Verhoven
Sat Apr 15, 2017 11:23 am
 
Forum: FiveWin for Harbour/xHarbour
Topic: MSVC 2017 Try
Replies: 67
Views: 7706

Re: MSVC 2017 Try

1.

Modifica este código:

( HINTERNET ) hb_parnl( 1 )

así:

( HINTERNET ) hb_parnll( 1 )
by Antonio Linares
Fri Apr 14, 2017 7:33 pm
 
Forum: FiveWin for Harbour/xHarbour
Topic: MSVC 2017 Try
Replies: 67
Views: 7706

Re: MSVC 2017 Try

1.- error (warning): internet.prg(441): warning C4302: 'conversi¢n de tipo': truncamiento de 'HINTERNET' a 'LONG' internet.prg(446): warning C4312: 'conversi¢n de tipo': conversi¢n de 'long' a 'HINTERNET' de mayor tama¤o Code: line 441:      hb_retnl( ...
by Verhoven
Fri Apr 14, 2017 5:18 pm
 
Forum: FiveWin for Harbour/xHarbour
Topic: MSVC 2017 Try
Replies: 67
Views: 7706

Re: Migrando de FWH 32 a FWH 64 - windows.h

Este es el prototipo de InternetReadFile(): BOOL InternetReadFile(  _In_   HINTERNET hFile,  _Out_  LPVOID lpBuffer,  _In_   DWORD dwNumberOfBytesToRead,  _Out_  LPDWORD lpdwNumberOfBytesRead); http://msdn.microsoft.com/en-us/library/windows/desktop/aa385103%28v=vs.85%29.aspx ...
by Antonio Linares
Sun Jan 04, 2015 10:50 pm
 
Forum: FiveWin para Harbour/xHarbour
Topic: Migrando de FWH 32 a FWH 64 - windows.h
Replies: 79
Views: 18974

Re: Tftp - Directory no retorna la hora - Funciona a Medias

... ) en C y FTP_LastFileInDirectory ( cMask,cIP,cUser,cPass ) en Harbour. function FTP_LastFileInDirectory( cMask,cIP,cUser,cPass ) local hInternet, hConnect local clastFileinDir:=space(260) default cMask := "*.*" hInternet = INTERNETOPEN( "Anystring", INTERNET_OPEN_TYPE_DIRECT, ...
by Verhoven
Mon Jun 24, 2013 5:36 pm
 
Forum: FiveWin para Harbour/xHarbour
Topic: Tftp - Directory no retorna la hora - Funciona a Medias
Replies: 5
Views: 1412

Re: FTP access suddenly doesn't work!?

... value of the function you use to write de file via FTP: HB_FUNC( INTERNETWRITEFILE ) { DWORD nBytesWritten; BOOL lSuccess = InternetWriteFile( ( HINTERNET ) hb_parnl( 1 ), hb_parc( 2 ), hb_parnl( 3 ), &nBytesWritten ); hb_retl( lSuccess ); } So if it is .T. the file was writen in the destination.
by Verhoven
Thu Apr 25, 2013 11:23 am
 
Forum: FiveWin for Harbour/xHarbour
Topic: FTP access suddenly doesn't work!?
Replies: 29
Views: 9567

Como tomar fecha y hora de un archivo en un FTP??

... Necesito algo muy simple y es obtener fecha y hora de un archivo que se encuentre dentro de una carpeta del servidor FTP Estoy haciendo esto: hInternet :=INTERNETOPEN( "CualquierCosa", INTERNET_OPEN_TYPE_DIRECT, 0, 0, 0 ) hConnect :=INTERNETCONNECT( hInternet, cFTP_url, INTERNET_INVALID_PORT_NUMBER, ...
by gsabattino
Sun May 06, 2012 5:11 pm
 
Forum: FiveWin para Harbour/xHarbour
Topic: Como tomar fecha y hora de un archivo en un FTP??
Replies: 1
Views: 1038

Re: Cliente FTP con FW+xH

... 2) Escribe la siguiente funcion: FUNCTION SubirFtp( cFtpAddress, cUser, cPass, cOrigen, cDestino, nPort, nService ) local hWinInet, hInternet, hConnect, lOk // cargamos la DLL si no estaba cargada hWinINet := WinINet() if hWinINet < 0 .or. hWinINet >= 32 hInternet := InternetOpen( ...
by Manuel Valdenebro
Sun Jan 29, 2012 12:26 pm
 
Forum: FiveWin para Harbour/xHarbour
Topic: Cliente FTP con FW+xH
Replies: 8
Views: 2977

Re: ayuda como subir archivo via ftp

... (csv/pepe1.txt) // cDestino path destino (/html/csv/pepe2.txt) FUNCTION SubirFtp( cFtpAddress, cUser, cPass, cOrigen, cDestino ) local hWinInet, hInternet, hConnect, lOk // cargamos la DLL si no estaba cargada hWinINet := WinINet()    if hWinINet < 0 .or. hWinINet >= 32       hInternet ...
by Manuel Valdenebro
Fri Dec 09, 2011 3:01 am
 
Forum: FiveWin para Harbour/xHarbour
Topic: ayuda como subir archivo via ftp
Replies: 3
Views: 1022

Re: No puedo acceder a mi FTP

... 15 @ 3, 2 BUTTON "FTP download"; ACTION DOWNLOAD( oPrg ) ACTIVATE DIALOG oDlg; CENTER RETURN NIL STATIC FUNCTION DOWNLOAD( oPrg ) LOCAL hInternet, hConnect, hSource, hDest, nRead LOCAL cData := SPACE( 1024 ) LOCAL nPos := 0 hInternet = INTERNETOPEN( "Anystring", INTERNET_OPEN_TYPE_DIRECT, ...
by mgsoft
Wed Aug 03, 2011 1:19 pm
 
Forum: FiveWin para Harbour/xHarbour
Topic: No puedo acceder a mi FTP
Replies: 4
Views: 982

Re: Compile Error

... make these changes: hb_retnl( ( unsigned long ) OpenComm( ( char * ) hb_parc( 1 ), cbInQueue, cbOutQueue ) ); hb_retl( InternetFindNextFile( ( HINTERNET ) hb_parnl( 1 ), ( char * ) hb_parc( 2 ) ) ); BOOL lSuccess = InternetReadFile( ( HINTERNET ) hb_parnl( 1 ), ( char * ) hb_parc( 2 ), hb_parclen( ...
by Antonio Linares
Sat Oct 30, 2010 6:14 am
 
Forum: FiveWin for Harbour/xHarbour
Topic: Compile Error
Replies: 12
Views: 2730

Re: Ayuda Por Favor

Julio, "Anystring" sirve. Es cualquier nombre que quieras usar. Prueba a usar MsgInfo() para ver que valores toman hInternet y hConnection: hInternet = INTERNETOPEN( "Anystring", INTERNET_OPEN_TYPE_DIRECT, 0, 0, 0 ) MsgInfo( hInternet ) hConnect = INTERNETCONNECT( ...
by Antonio Linares
Thu Jan 28, 2010 5:58 pm
 
Forum: FiveWin para Pocket PC
Topic: Ayuda Por Favor
Replies: 6
Views: 1628

Re: Ayuda Por Favor

... 3 // // flags for FTP // #define INTERNET_FLAG_TRANSFER_ASCII 1 #define INTERNET_FLAG_TRANSFER_BINARY 2 FUNCTION MAIN() LOCAL hInternet, hConnect hInternet = INTERNETOPEN( "Anystring", INTERNET_OPEN_TYPE_DIRECT, 0, 0, 0 ) \\ donde dice Anystring hay que colocar algo ...
by Julio Perez
Thu Jan 28, 2010 3:33 pm
 
Forum: FiveWin para Pocket PC
Topic: Ayuda Por Favor
Replies: 6
Views: 1628
Next

Return to advanced search