Pocket PC Networking >> ftp problem with evb

by AEOM » Thu, 21 Jul 2005 18:25:32 GMT

Hi everybody

...sorry for my english...

I upload some files from a pda (Qtek with windows mobile 2003) to a server
web with this code

http://support.microsoft.com/default.aspx?scid=kb;en-us;305598

All works very well but after the first time I open internet explorer in the
pda the prcedure stop to work and return error 129000 :-(

I must do an hard reset and install all to re-work

Any idea? is a problem of dll wininet ?

thanks

AEOM







Similar Threads

1. ftp and evb... problem - Pocketpc Developer

2. ftp with evb

3. FTP with evb

4. ftp with evb

5. Problems with FTP - Pocket PC

6. Problem with FTP on GPRS Connection

I develop Application uses ftp functions from Embbeded VC 3.0 on Symbol
PPT2837, and it functions works perfect when it connect trougth
External Modem. I can Get and Put Files from my internet server...

But my Problem is when I use my application on GPRS connection, I make a
dial Connection, and it connects then i can see Web Pages from Pocket
Internet Explorer,  but I can connect a Ftp Sesion, the InternetConnect
Function Fail, but it don send me Code Error..

Well, something wrong has gprs connection, but I install a vxFtp Software
and it Works perfect, so maybe this software uses the same Ftp Functions, or
maybe his uses your own protocol...

I don know if I am doing something Wrong....
Somebody can help me..??
I Appreciate your help
Thanks anyway....


BOOL FTP_Connect(HWND hWnd, TCHAR *StrServer, TCHAR *StrProxyServer, TCHAR
*StrUser, TCHAR *StrPass)
{
 TCHAR szErrMsg[500];
 DWORD dwErr, dwCant;

  hOpen = InternetOpen(TEXT("CeHttp"), INTERNET_OPEN_TYPE_DIRECT, NULL, 0,
0);

 if (!hOpen)
 { wsprintf (szErrMsg, TEXT("%s: %x"), TEXT("InternetOpen Error"),
GetLastError());
  MessageBox(hWnd, szErrMsg, TEXT("InternetOpen"), MB_OK);
  return FALSE;
 }

    // Open an HTTP session for a specified site by using lpszServer.
    if (!(hConnect = InternetConnect(hOpen, StrServer,
INTERNET_INVALID_PORT_NUMBER, StrUser, StrPass, INTERNET_SERVICE_FTP, 0 ,
(DWORD)0)))
    { dwCant=sizeof(szErrMsg)/2;
      InternetGetLastResponseInfo(&dwErr, szErrMsg, &dwCant);
      wsprintf (szErrMsg, TEXT("%s: %x"), TEXT("InternetConnect
Error"),GetLastError());
      MessageBox(hWnd,  szErrMsg, TEXT("InternetConnect"), B_OK);
      InternetCloseHandle(hOpen);
      return FALSE;
    }

 return TRUE;
}



7. FTP problem with PPC2003 - Pocket PC

8. FTP problem with activesync 4.2

My configuration is:
Mobile OS: Windows Mobile 2003 second edition and CompactFramework 1.1 SP3
Desktop OS: Windows XP SP2 with "windows firewall" disabled
Connection: ActiveSync 4.2

The FTP applications does not work with activesync 4.2 in passive or active 
mode when activesync and FTP server runs on same PC.
With activesync 3.x all works well.

Is it a bug of activesync 4.2?

Help me please