CInternetSession:加了头文件,怎么编译还会出错?
fzqrf 2008-07-31 11:25:15 #include <afxinet.h>
...
...
void CHTTPDlg::OnButton1()
{
// TODO: Add your control notification handler code here
CInternetSession* pInternetSession;
}
程序编译时会出现如下错误:
Compiling...
HTTPDlg.cpp
D:\VCProj\HTTP\HTTPDlg.cpp(178) : error C2065: 'CInternetSession' : undeclared identifier
D:\VCProj\HTTP\HTTPDlg.cpp(178) : error C2065: 'pInternetSession' : undeclared identifier
D:\VCProj\HTTP\HTTPDlg.cpp(178) : warning C4552: '*' : operator has no effect; expected operator with side-effect
Error executing cl.exe.
HTTPDlg.obj - 2 error(s), 1 warning(s)
请问是什么原因?谢谢!