本帖最后由 VisualEleven 于 2011-06-27 10:26:17 编辑

解决方案 »

  1.   

    CHttpConnection* GetHttpConnection( LPCTSTR pstrServer, INTERNET_PORT nPort = INTERNET_INVALID_PORT_NUMBER, LPCTSTR pstrUserName = NULL, LPCTSTR pstrPassword = NULL );
    Throw ( CInternetException );应该是在这个函数里输入
      

  2.   

    CHttpConnection( 
       CInternetSession* pSession, 
       LPCTSTR pstrServer, 
       INTERNET_PORT nPort = INTERNET_INVALID_PORT_NUMBER, 
       LPCTSTR pstrUserName = NULL, 
       LPCTSTR pstrPassword = NULL, 
       DWORD_PTR dwContext = 1 
    );
    这是CHttpConnection构造函数,可以参考下使用