Newbie?ActiveX Control in ActiveX Control 
Author Message
 Newbie?ActiveX Control in ActiveX Control

Hi,Everybody:
        I 've just used AppWizard create a ActiveX Control ( Like MyOcx), I insert
an another ActiveX Control like Calender  in my project ,and I want to
create the Calender Control dynamic in the OnCreat() in the CMyOcxCtr
Class.

        m_Calender.Create("Test",m_dwStyle,m_rectCalender,this,IDC_CALENDER,NULL,FA

LSE,NULL);
        Everthing is Ok in building .But when I test this OCX in Active Control
Test Container, it said like "read the wrong address 0x00000" ,and quit.
Use IE is same.

        But when I use the Calender in the same way in a MFC Application,
everything is OK, the CCalender works well.

        Please help me .
        Thanks



Wed, 10 Jan 2001 03:00:00 GMT  
 Newbie?ActiveX Control in ActiveX Control
Hi,

Have you included the "AfxEnableControlContainer()" statement in the
COleControl derivative?

regards,
Helge

=====================================
Helge Minken
http://login.eunet.no/~helgemi

TreeApplet Composer:
http://login.eunet.no/~helgemi/TAComposer

LicenseManager:
http://login.eunet.no/~helgemi/LicenseManager
=====================================

Quote:

>Hi,Everybody:
> I 've just used AppWizard create a ActiveX Control ( Like MyOcx), I insert
>an another ActiveX Control like Calender  in my project ,and I want to
>create the Calender Control dynamic in the OnCreat() in the CMyOcxCtr
>Class.


m_Calender.Create("Test",m_dwStyle,m_rectCalender,this,IDC_CALENDER,NULL,FA
Quote:

>LSE,NULL);
> Everthing is Ok in building .But when I test this OCX in Active Control
>Test Container, it said like "read the wrong address 0x00000" ,and quit.
>Use IE is same.

> But when I use the Calender in the same way in a MFC Application,
>everything is OK, the CCalender works well.

> Please help me .
> Thanks




Wed, 10 Jan 2001 03:00:00 GMT  
 
 [ 2 post ] 

 Relevant Pages 

1. Control webbrowser ActiveX control in composit ActiveX control

2. ActiveX control inside another activex control

3. Need help with ActiveX control containing other activex controls

4. ATL ActiveX Control hosting code fails to initialize ActiveX Controls on Win9x

5. ActiveX control inside another ActiveX control

6. Need help with ActiveX control containing other activex controls

7. ActiveX control in an ActiveX control

8. Modify Activex Control Properties from other Activex Control.

9. ActiveX-control inside ActiveX-control

10. Custom ActiveX control built on a Standard (comctl32.ocx) ActiveX Control

11. Windowless ActiveX control/ Transparent ActiveX control

12. Modify Activex Control Properties from other Activex Control.

 

 
Powered by phpBB® Forum Software