放在
BOOL CERPsoftApp::InitInstance()
{
AfxEnableControlContainer(); //使程序启用ActiveX功能的引用函数 只有将此行代码加入程序主CPP中,才可使用Webbrowser控件切记!
// Standard initialization
// If you are not using these features and wish to reduce the size
// of your final executable, you should remove from the following
// the specific initialization routines you do not need.
#ifdef _AFXDLL
Enable3dControls(); // Call this when using MFC in a shared DLL
#else
Enable3dControlsStatic(); // Call this when linking to MFC statically
#endif
m_mainfram = NULL;
IniAdoTwo();
.
.
.
.