提取出了网页的html代码,小弟我要网页中title的内容.该如何写?

提取出了网页的html代码,,我要网页中title的内容.,.该怎么写? 急
有现存的类否?
谢谢大家~

------解决方案--------------------
CString str= "网页代码 ";
CStirng tou;
int w1,w2;
w1=str.Find(0, " <title> ");
w2=str.Find(0, " </title> ");
tou=str.Mid(w1,w2);
------解决方案--------------------
CString str= "网页代码 ";
CStirng tou;
int w1,w2;
w1=str.Find(0, " <title> ");
w2=str.Find(0, " </title> ")-w1;
tou=str.Mid(w1,w2);
------解决方案--------------------
CString str= "网页代码 ";
CStirng tou;
int w1,w2;
w1=str.Find( " <title> ",0);
w2=str.Find( " </title> ",0)-w1;
tou=str.Mid(w1,w2);