
VB ActiveX Control on a MFC VC++ Dialog.
Hi,
In that case use pDlg->DestroyWindow() to close the dialog - dont just
delete it!
Regards,
--
Adrian O' Neill
Remove * in email address to reply
Quote:
> I know that.
> the problem starts when I use a pointer to the dialog and init it with
> "create".
> When I delete the dialog, the program fails.
> Do you know what can i do? I want the dialog to not be modal.
> > If you're placing it on the dialog, the MFC framework will take care of
> the
> > deletion automatically. You don't have to do anything.
> > Regards,
> > --
> > Adrian O' Neill
> > Remove * in email address to reply
> > > I am working with MFC and I am using ActiveX controls writen in Visual
> > Basic
> > > as elements of the dialogs. When I am trying to
> > > delete such dialog using "delete this" from the close dialog member
> > function
> > > my application fails, giving me a Visual Basic error, is there an
> > additional
> > > code I should put in my ActiveX to take care of its deletion?
> > > Is there any other problem?
> > > Thank you,
> > > Alina