CHttpFile 的GetFileName的问题!不能取到文件名。
babam 2004-07-08 10:40:36 //我的代码
CString urlstr;
m_input.GetWindowText(urlstr);
unsigned char myData[10000];
CInternetSession mySession(NULL,0);
CHttpFile* myHttpFile=NULL;
try
{
myHttpFile=(CHttpFile*)mySession.OpenURL(urlstr,1,INTERNET_FLAG_TRANSFER_BINARY);
}
catch(CInternetException *e)
{
AfxMessageBox("不能打开指定网页");
mySession.Close();
return ;
}
unsigned long code;
myHttpFile->QueryInfoStatusCode(code);
CString title;
CString name;
name = myHttpFile->GetFileName();