创建一新的MFC ActiveX ControlWizard项目,取名为Hello,其他用缺省选项;
在ResourceView页中新增一对话框资源,命名为
IDD_HELLOFORMVIEW,可以在对话框上放自己的控件;设置对话框资源IDD_HELLODIALOG属性的Style页为Style:Child、
Border:Dialog Frame、Title Bar:unchecked;设置More Style页为
Visible:checked;Control:checked;设置Extended Styles页为Static Edge:checked;为对话框资源IDD_HELLOFORMVIEW创建新类CHelloFormView,从CFormView继承;在HelloFormView.h中将CHelloFormView的构造函数CHelloFormView()和析
构函数virtual ~CHelloFormView()从protected改为public;在HelloFormView.h中对CHelloFormView类加入public friend class CHelloCtrl;确认在HelloCtrl.h中已加入语句#include "HelloFormView.h",为CHelloCtrl类
添加成员变量CHelloFormView m_helloFormView;修改CHelloCtrl::OnCreate函数,在此创建m_helloFormView;修改DoHello代码,在此显示FormView; 
int CHelloCtrl::OnCreate
(LPCREATESTRUCT lpCreateStruct) 
{
if (COleControl::OnCreate(lpCreateStruct) == -1)
return -1;

// 创建FormView
m_helloFormView.Create(NULL,NULL,AFX_WS_DEFAULT_VIEW,
CRect(0, 0, 0, 0), this, AFX_IDW_PANE_FIRST, NULL);return 0;
}void CHelloCtrl::OnDraw(CDC* pdc, const 
 CRect& rcBounds, const CRect& rcInvalid)
{
// 定位Hello对话框
m_helloFormView.MoveWindow(rcBounds,TRUE);
}编译后用ActiveX Control Test Container测试,引入ocx时出错。
请问各位这是什么问题?该怎么解决?