Creating ActiveX control Within activeX Control

V

Vinay Chopra

Hi,
I have created an ActiveX control using MFC activeX control wizard and added
a dialog to it.
Now on that Dialog I dragged a Button control and gave a "hello world"
message on it click. When I run the control in an activex container it works
fine.

Now I want to a Datagrid in place of this button. I have inserted datagrid
and build it I dont get any error. but when I try to open it in ActiveX
container to see the display. Im getting " Debug assertion Failed " error
with file winocc.cpp.



Summary: Can we insert ActiveX Control(like DataGrid) in another ActiveX
control. If yes, How???



Can anyone help me out.
Thanks in Anticipation.
Vinay
 
K

kjitendra

I am also having similar problem in our MFC application with activex
control embedded in dialog box. I have built whole application in new
VS.NET 2003 environment and all other controls works fine other than
activex control. Thus application is giving lot f debug assertion
failed messages.

Once things which I realized is that window handle to this activex
control is null and thats where its not able to generate activex
control and throws error message. Can anyone help to troubleshoot.
Thanks.
Jitendra.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top