December 12th, 2012, 05:35 PM
A question regarding passing a variable from CView to CDocument
I am attaching a sample project. Basically what this project does is that I initialize a variable map<CString, bool*> m_mapTest in CView::OnInitialUpdate and then pass the variable to CDocument class. On the other hand, within the function OnSaveDocument defined in CDocument I check m_mapTest. To my surprise, the CString part of m_mapTest is correct but the bool* part of m_mapTest is wrong(I pass an array of bool in CView::OnInitialUpdate). Could any guru here point out why? Thanks.
Last edited by LarryChen; December 12th, 2012 at 05:44 PM.
Click Here to Expand Forum to Full Width
This is a Codeguru.com survey!