I try with
hInternet = INTERNETOPEN( "http://www.microsoft.com", INTERNET_OPEN_TYPE_DIRECT, 0, 0, 0 )
but I always get back 0 and the connection is not established.
Thanks in advance and best regards,
Otto
lsftp1.c
ftp1.obj : error LNK2001: unresolved external symbol HB_FUN_GETLASTERROR
ftp1.exe : fatal error LNK1120: 1 unresolved externa
#pragma BEGINDUMP
#include <windows.h>
HB_FUNC( GETLASTERROR )
{
hb_retnl( (LONG) GetLastError() );
}
#pragma ENDDUMP
hInternet = INTERNETOPEN( "http://www.microsoft.com", INTERNET_OPEN_TYPE_DIRECT, 0, 0, 0 )
MSGINFO( str(GetLastError() ) + " 1" )
IF hINTERNET = 0
MSGINFO("INTERNETOPEN ERREUR CONNEXION INTERNET envoi sortant")
RETURN .F.
ENDIF
hConnect = INTERNETCONNECT( hInternet, "ftp.test.info", INTERNET_INVALID_PORT_NUMBER, "user", "pw", INTERNET_SERVICE_FTP, 0, 0 )
MSGINFO( str(GetLastError() ) + " 2" )
IF hConnect = 0
MSGINFO("INTERNETCONNECT ERREUR Création CONNEXION FTP envoi sortant ... Abandon transmission ")
RETURN .F.
ENDIF
MSGINFO( str(GetLastError() ) + " 3" )
Return to FiveWin for Pocket PC
Users browsing this forum: No registered users and 7 guests