I have an MFC SDI application.
In the View I have a variable
const CString ViewMessage
I want to initialize this variable from a value in the Doc e.g. DocMessage.
As the variable is const I have to initialize it in the constructor list. How do I do this?
I tried adding
to the View initialization list and it compiles. Unfortunately, when I run it, it just causes an assertion and loads of memory leaks.
Can anybody help?