没有人知道吗,另外还有个问题,在用openurl打开http时就没有错,也没设代理服务器,这是为什麽?
CInterSession m_http;
CHttpFile * m_httpfile=NULL;
m_httpfile=(CHttpFile *)m_http.OpenURL(m_editurl); //m_editurl是cstring类型变量

解决方案 »

  1.   

    FTP端口通常是21.不是8000.
    而且好像session.GetFtpConnection(m_editurl,"anonymous","",8000);
        参数不对吧.CFtpConnection* GetFtpConnection( LPCTSTR pstrServer, LPCTSTR pstrUserName = NULL, LPCTSTR pstrPassword = NULL, INTERNET_PORT nPort = INTERNET_INVALID_PORT_NUMBER, BOOL bPassive = FALSE ); 
    这是我的FTP,不过是打开局域网的FTP_SERVER上的.
    CInternetSession ses;
    CFtpConnection* pFTP=ses.GetFtpConnection(ftpcontrl[0],ftpcontrl[1],ftpcontrl[2],21,FALSE);    
    pFTP->SetCurrentDirectory ("/network/tools");
      

  2.   

    好像不是这个问题,为什麽用OpenURL不用设代理也能连上?