title: Visual studio 6 to studio 2010 with an activex control
body: <p>I am trying to convert a visual studio 6 project to Visual studio 2010. </p>
  
  <p>There is an activex control on the dialog box. it works fine in Studio 6.</p>
  
  <p>However it fails in</p>
  
  <pre><code>BOOL COleControlContainer::FillListSitesOrWnds(_AFX_OCC_DIALOG_INFO* pOccDlgInfo)
  </code></pre>
  
  <p>If I try to create the control in OnInitDialog like below dynamically it returns 0</p>
  
  <p>Any help is greatly appreciated.</p>
  
  <pre><code>BOOL m = m_obChartCtrl.Create(_T("test"),WS_CHILD |WS_VISIBLE,CRect (10,10,200,200),this,ID_FIRSTAXGC);
  </code></pre>