我在网上找了很久都没有好些的资料,请问有没有人有代码或者做法啊?谢谢了

解决方案 »

  1.   

    1.CHttpFile* OpenRequest( LPCTSTR pstrVerb, LPCTSTR pstrObjectName, LPCTSTR pstrReferer = NULL, DWORD dwContext = 1, LPCTSTR* pstrAcceptTypes = NULL, LPCTSTR pstrVersion = NULL, DWORD dwFlags = INTERNET_FLAG_EXISTING_CONNECT );2.CHttpFile.ReadString( LPTSTR pstr, UINT nMax );
    3.在字符串中搜索
      

  2.   

    用IHTMLDocument2接口
    http://www.soudie.net/top_2768_cat_3/
      

  3.   

    我推薦樓主使用re2c.
      re2c - convert regular expressions to C/C++
      

  4.   

    谢谢各位的回复用IHTMLDocument2接口
    http://www.soudie.net/top_2768_cat_3/中
    这个例子好象是要打开浏览器才可以的
    1.CHttpFile* OpenRequest( LPCTSTR pstrVerb, LPCTSTR pstrObjectName, LPCTSTR pstrReferer = NULL, DWORD dwContext = 1, LPCTSTR* pstrAcceptTypes = NULL, LPCTSTR pstrVersion = NULL, DWORD dwFlags = INTERNET_FLAG_EXISTING_CONNECT );2.CHttpFile.ReadString( LPTSTR pstr, UINT nMax );
    3.在字符串中搜索
    这个前2部是不是都是为了获取网页的内容的?