请教一下有没有人知道用VC怎样解析网页的内容并得到里面的URL
请问一下有没有人知道用VC怎样解析网页的内容并得到里面的URL
我在网上找了很久都没有好些的资料,请问有没有人有代码或者做法啊?谢谢了
------解决方案--------------------
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.在字符串中搜索
------解决方案--------------------
CHttpConnection::OpenRequest
------解决方案--------------------
用IHTMLDocument2接口
http://www.soudie.net/top_2768_cat_3/
------解决方案--------------------
我推薦樓主使用re2c.
re2c - convert regular expressions to C/C++
我在网上找了很久都没有好些的资料,请问有没有人有代码或者做法啊?谢谢了
------解决方案--------------------
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.在字符串中搜索
------解决方案--------------------
CHttpConnection::OpenRequest
------解决方案--------------------
用IHTMLDocument2接口
http://www.soudie.net/top_2768_cat_3/
------解决方案--------------------
我推薦樓主使用re2c.
re2c - convert regular expressions to C/C++