Click here to Skip to main content
15,886,362 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
Hello

I am trying to convert a visual studio 6 project to Visual studio 10.

There is an activex control on the dialog box. it works fine in Studio 6.

However it fails in

BOOL COleControlContainer::FillListSitesOrWnds(_AFX_OCC_DIALOG_INFO* pOccDlgInfo)


If I try to create the control in OnInitDialog like below dynamically it returns 0

Any help is greatly appreciated.

BOOL m = m_obChartCtrl.Create(_T("test"),WS_CHILD |WS_VISIBLE,CRect (10,10,200,200),this,ID_FIRSTAXGC);
Posted
Comments
Albert Holguin 19-Dec-11 21:25pm    
Did you check GetLastError()? ...Make sure you called CDialog::OnInitDialog() as your first call in OnInitDialog()?

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900