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
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
Otto,
Are you using the emulator or a real device ?
Are you able to open i.e. www.google.com from the internet explorer ?
Hello Antonio,
I am useing a real device and I am able to open internet from the internet explorer.
Thanks in advance
Otto
ftp1.cls
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" )Only as an information that the setup of the handy is correct.
I tested with the CMHELPER sample (cpp) from Mobile 6 SDK.
This sample opens the connection.
Program Files\Windows Mobile 6 SDK\Samples\PocketPC\CPP\MFC\CMHELPER
Best regards,
Otto
I missed the function GprsConnect().
Now all is working.
GprsConnect needs cellcore.lib.
Best regards,
Otto
Otto,
Would you mind to post the modified example source code ? thanks ![]()