在mfc中调用vc编译的一个ocx文件,ocx的ctrl类调用一个非模态对话框
int COCXCtrl::OnCreate(LPCREATESTRUCT lpCreateStruct) 
{
if (COleControl::OnCreate(lpCreateStruct) == -1)
return -1;

// TODO: Add your specialized creation code here
m_dlg.Create(IDD_DIALOG1, this);
m_dlg.ShowWindow(SW_SHOW);
return 0;
}
当运行程序时,在ocx的对话框上,随便按键盘上的一个按键就死掉...用Spy++也没查到什么..刚学ActiveX,求高手解答