Professional UI Solutions
Site Map   /  Register
 
 

Forum

Please Log In to post a new message or reply to an existing one. If you are not registered, please register.

NOTE: Some forums may be read-only if you are not currently subscribed to our technical support services.

Forums » Prof-UIS Tech Support » CMainFrame is derived from some other class. How can I include CExtNCW ? Collapse All
Subject Author Date
Ralph Spaulding Feb 8, 2017 - 7:42 PM

Hi,

I am planning to use the Gridcontrol used in sample FilteredGrids.

But my CMainFrame already derives from a seperate class FrameOrg. How can I add CExtNCW < CFrameWnd >

I tried both approaches shown below. But I am getting errors.

class CMainFrame : public CExtNCW < CFrameWnd > , public FrameOrg
class CMainFrame : virtual public CExtNCW < CFrameWnd > , virtual public FrameOrg

Some of the errors are

MainFrm.cpp(242): error C2594: ’static_cast’ : ambiguous conversions from ’void (__thiscall CMainFrame::* )(void)’ to ’void (__thiscall CWnd::* )(void)’
1>MainFrm.cpp(242): warning C4407: cast between different pointer to member representations, compiler may generate incorrect code
1>MainFrm.cpp(243): error C2594: ’static_cast’ : ambiguous conversions from ’void (__thiscall CMainFrame::* )(void)’ to ’void (__thiscall CWnd::* )(void)’
1>MainFrm.cpp(243): warning C4407: cast between different pointer to member representations, compiler may generate incorrect code
1>MainFrm.cpp(244): error C2594: ’static_cast’ : ambiguous conversions from ’BOOL (__thiscall CMainFrame::* )(void)’ to ’BOOL (__thiscall CWnd::* )(void)’
1>MainFrm.cpp(244): warning C4407: cast between different pointer to member representations, compiler may generate incorrect code
1>MainFrm.cpp(245): error C2594: ’static_cast’ : ambiguous conversions from ’void (__thiscall CMainFrame::* )(UINT_PTR)’ to ’void (__thiscall CWnd::* )(UINT_PTR)’
1>MainFrm.cpp(245): warning C4407: cast between different pointer to member representations, compiler may generate incorrect code


If anyone came across similar situation and have a solution, please share.

Thanks,

-Ravi