I'm having a very strange problem in an MFC project of mine. In my porject settings I have unicode use defined.
The following line of code gives me an error that it can't convert the argument types. (Not unexpected)
AfxMessageBox("Unable to read readinterval.txt");
I then changed the code adding the 'L'to make the constant string to a unicode string
AfxMessageBox(L"Unable to read readinterval.txt");
Now when I compile I get the following error:
Error 1 error C2248: 'CObject::operator =' : cannot access private member declared in class 'CObject' c:\program files\microsoft visual studio 8\vc\atlmfc\include\afx.h 1254
WTF? I'm TOTALLY confused by this!
I'll be extremely grateful for anyone to point out anything that I'm doing wrong!
This post has been edited by Sailing_Nut: 09 February 2010 - 07:49 AM