E
Edward Clements
Guest
I am modifying our OLE Server application (Visual Studio 2015 Update 3) to use CMFCToolBar instead of CToolBar.
I generated an empty OLE Server application to see what changes I had to make in my IPFrame.
One change I had to make was
COleCntrFrameWndEx* pNewFrame = DYNAMIC_DOWNCAST(COleCntrFrameWndEx, m_pMainFrame);
But pNewFrame returns NULL, even in the sample application.
This exact scenario is described in https://support.microsoft.com/en-gb/help/2627201/fix-an-mfc-application-that-uses-the-coledocipframewndex-class-for-doc, but there is a (hot)fix only for Visual Studio 2010.
Could anyone help with how to fix this for Visual Studio 2015?
Thanks,
Edward Clements
Continue reading...
I generated an empty OLE Server application to see what changes I had to make in my IPFrame.
One change I had to make was
COleCntrFrameWndEx* pNewFrame = DYNAMIC_DOWNCAST(COleCntrFrameWndEx, m_pMainFrame);
But pNewFrame returns NULL, even in the sample application.
This exact scenario is described in https://support.microsoft.com/en-gb/help/2627201/fix-an-mfc-application-that-uses-the-coledocipframewndex-class-for-doc, but there is a (hot)fix only for Visual Studio 2010.
Could anyone help with how to fix this for Visual Studio 2015?
Thanks,
Edward Clements
Continue reading...