VB ActiveX Control on a MFC VC++ Dialog. 
Author Message
 VB ActiveX Control on a MFC VC++ Dialog.

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



Mon, 06 Jan 2003 03:00:00 GMT  
 VB ActiveX Control on a MFC VC++ Dialog.
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


Quote:
> 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



Mon, 06 Jan 2003 03:00:00 GMT  
 VB ActiveX Control on a MFC VC++ Dialog.
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.



Quote:
> 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



Mon, 06 Jan 2003 03:00:00 GMT  
 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



Mon, 06 Jan 2003 03:00:00 GMT  
 
 [ 4 post ] 

 Relevant Pages 

1. Access to Arrow keys in popup dialog in MFC ActiveX control / under VB

2. Problem using VB 5 activex DLL in a VC++ activex control

3. VB ActiveX Control encapsulated within a VC Control

4. HELP: activex control in dialog box in mfc user dll (dialog not launching)

5. Help with VB ActiveX Control and MFC DLL

6. how to insert vb activex control into mfc application

7. Calling VB ActiveX Control from MFC

8. Question: Catching errors from a VB ActiveX control in Visual C++ using MFC

9. Passing binary data from VB to VC-MFC-ActiveX

10. Key/tab problems using VB ActiveX controls in MFC CView and derived classes or PropertyPage

11. use vb activex control in MFC

12. calling VB activex control from VC

 

 
Powered by phpBB® Forum Software