kerneldelta
Programmer
I construct an ActiveX Container Application with the MFC AppWizard(exe)
It's completely blank - no code of my own inserted. If I then run it and
choose Edit/Insert New Object it goes into dlg.DoModal() in
CShowStringView::OnInsertObject()
.............................................................................
void CShowStringView: :OnInsertObject()
{
// Invoke the standard Insert Object dialog box to obtain information
// for new CShowStringCntrItem object.
COleInsertDialog dlg;
if (dlg.DoModal() != IDOK)
return;
.............................................................................
When it gets into dlg.DoModal() it goes into MapResult and the program then
just hangs
.............................................................................
int COleInsertDialog:oModal()
{
ASSERT_VALID(this);
ASSERT(m_io.lpfnHook != NULL); // can still be a user hook
m_io.hWndOwner = PreModal();
int iResult = MapResult:OleUIInsertObject(&m_io));
PostModal();
return iResult;
}
.............................................................................
I'd be very grateful if anyone could help me solve the problem.
It's completely blank - no code of my own inserted. If I then run it and
choose Edit/Insert New Object it goes into dlg.DoModal() in
CShowStringView::OnInsertObject()
.............................................................................
void CShowStringView: :OnInsertObject()
{
// Invoke the standard Insert Object dialog box to obtain information
// for new CShowStringCntrItem object.
COleInsertDialog dlg;
if (dlg.DoModal() != IDOK)
return;
.............................................................................
When it gets into dlg.DoModal() it goes into MapResult and the program then
just hangs
.............................................................................
int COleInsertDialog:oModal()
{
ASSERT_VALID(this);
ASSERT(m_io.lpfnHook != NULL); // can still be a user hook
m_io.hWndOwner = PreModal();
int iResult = MapResult:OleUIInsertObject(&m_io));
PostModal();
return iResult;
}
.............................................................................
I'd be very grateful if anyone could help me solve the problem.