需要在stdafx.h里面加
#include <afxwin.h> // MFC core and standard components
#include <afxext.h> // MFC extensions
#include "wininet.h " //you should Add ,位置要对啊
#include <afxdisp.h> // MFC Automation classes
#include <afxdtctl.h> // MFC support for Internet Explorer 4 Common Controls
#ifndef _AFX_NO_AFXCMN_SUPPORT
#include <afxcmn.h> // MFC support for Windows Common Controls
#endif // _AFX_NO_AFXCMN_SUPPORT
#include <afxconv.h> //you should Add