S
Stu Smith
In upsizing some old VC6 code, I've come across the following problem
regarding MAKEINTRESOURCE.
In the old version, there was code along the lines of:
m_pListBox.AddString(CString(MAKEINTRESOURCE(IDS_TESTSTRING)));
If you however turn on managed extensions, this code fails. (A workaround is
to use LoadString).
Is this behaviour deliberate, or is it a bug in CString?
(I have a VC7.1 MFC project which demonstrates this if anyone is interested,
but the easiest way is simply to make a dialog with a listbox on, and add
that line somewhere).
Stu
regarding MAKEINTRESOURCE.
In the old version, there was code along the lines of:
m_pListBox.AddString(CString(MAKEINTRESOURCE(IDS_TESTSTRING)));
If you however turn on managed extensions, this code fails. (A workaround is
to use LoadString).
Is this behaviour deliberate, or is it a bug in CString?
(I have a VC7.1 MFC project which demonstrates this if anyone is interested,
but the easiest way is simply to make a dialog with a listbox on, and add
that line somewhere).
Stu