Look at this Post:
http://www.tek-tips.com/viewthread.cfm?qid=904941
That person's post plus the added comment regarding a 'PropExchange()' should get things working.
Did you create a corresponding Property Exchanger (PX) in your DoPropExchange(CPropExchange* pPX)?
Like this:
PX_String(pPX, _T("mymessage"), m_mymessage);
Hope that helps.
Soon after I submitted the previous post (reply), I found the solution:
// CContainerApp initialization (In the case for ActiveX control, use your COleControlModule derived class)
BOOL CContainerApp::InitInstance()
{
AfxEnableControlContainer();//Enables Controls 2 contain Other Controls
...
}...
Did you find a solution to this problem?
I am doing basically the same thing, but with a MSFlexGrid and getting the same error as you are:
dervMSFlexGrid m_MyGrid; //In Header
m_MyGrid.Create(NULL, "Grid", WS_VISIBLE | SBS_HORZ | BS_FLAT, CRect(0,0,400,300), this, IDC_GRID_MAIN); //In...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.