ActiveX control in VC++ - studio 2003


S

Shrii

1.I am using an inhouse developed ActiveX control in MFC application.
2.I created application inserted ActiveX control, created a member
variable with that control.
3.I got respective .cpp and .h files in my project.
4.Now am trying to access pointer to that Dialog by using :

CAnalysisCtrl* pAnalysisCtrl =
(CAnalysisCtrl*)GetDlgItem(IDC_ANALYSISCTRL1);

but I could not get valid pointer, it is returning me NULL value in
'pAnalysisCtrl '.



Same steps I followed in VC++-6.0, It is working properly.

Please let me know why there are diff results on same code.

Thanks in advance.

Somesh
 
Ad

Advertisements


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