带有 ActiveX 控件的 Visual Studio 6 到 Studio 2010
我正在尝试将 Visual Studio 6 项目转换为 Visual Studio 2010。
对话框上有一个 ActiveX 控件。它在 Studio 6 中工作正常。
但是
BOOL COleControlContainer::FillListSitesOrWnds(_AFX_OCC_DIALOG_INFO* pOccDlgInfo)
如果我尝试在 OnInitDialog 中动态创建控件(如下所示),它会失败,它会返回 0
非常感谢任何帮助。
BOOL m = m_obChartCtrl.Create(_T("test"),WS_CHILD |WS_VISIBLE,CRect (10,10,200,200),this,ID_FIRSTAXGC);
I am trying to convert a visual studio 6 project to Visual studio 2010.
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);
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论