locked
error in setting up ftp connection in windows mobile.. RRS feed

  • Question

  • HI ALL,
                      i have used the following code for establishing the ftp connection from my WINDOWS MOBILE emulator ..but it fails and the geterrorinfo returns 12031()
    iOpen=InternetOpen(TEXT(

    "sampletf" ),INTERNET_OPEN_TYPE_PRECONFIG,NULL,NULL,0);

     

    if (iOpen==NULL)

    {

    MessageBox(g_hWndDlgAuthenticate,TEXT(

    "check your internet settings" ),TEXT( "MESSAGE" ),MB_OK|MB_ICONERROR);

     

    return 0;

    }

    iConnect=InternetConnect(iOpen,TEXT(

    "ftp://ftp.drivehq.com/" ),INTERNET_DEFAULT_FTP_PORT,TEXT( "xyzabc" ),TEXT( "123456" ),INTERNET_SERVICE_FTP,INTERNET_FLAG_PASSIVE,NULL);

     

    int i=GetLastError();



       suggest me how can i solve this issue..
                                   thanks in advance...

    • Edited by hsaniva_k Wednesday, September 2, 2009 10:32 AM
    Thursday, August 6, 2009 4:40 PM

Answers

  • Hi Avinash,

     

     

    12031 ERROR_INTERNET_CONNECTION_RESET

    Verify your device is connected to the internet. Can you get the server from your device for example by PIE (ftp:\\FTP.drivehq.com ) ?

     

    Regards,

    Zhe Zhao

     

    • Marked as answer by ZHE ZHAO Thursday, August 13, 2009 1:55 AM
    Tuesday, August 11, 2009 7:14 AM

All replies

  • Hi Avinash,

     

     

    12031 ERROR_INTERNET_CONNECTION_RESET

    Verify your device is connected to the internet. Can you get the server from your device for example by PIE (ftp:\\FTP.drivehq.com ) ?

     

    Regards,

    Zhe Zhao

     

    • Marked as answer by ZHE ZHAO Thursday, August 13, 2009 1:55 AM
    Tuesday, August 11, 2009 7:14 AM
  • hi ZHEO Zhao..
              thanks for ur intrest..
    ya wen i ping it wrks fine...
    Thursday, August 27, 2009 5:36 AM