Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Problem with ActiveX Container Application

Status
Not open for further replies.

kerneldelta

Programmer
Jul 7, 2003
4
GB
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::DoModal()
{
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.


 
I'm just too impatient. It wasn't hanging, it was
just taking ages (well, about a minute) on my ancient
machine
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top