I have the following class and a call in an MFC application:
T( const CString& lpszT )
m_str = lpszT;
T dg ( __FUNCTION__ );
The compiler complains
'T::T(const CString &)' : cannot convert parameter 1 from 'const char ' to 'const CString &'
I then create a new win32 console application via VS 2005, add the same code and there is no complaint. I thought it was something to do with me having to #include <atlstr.h>, so I did that in my MFC app without any luck. When I step into the code in the console app, I can see that MultiByteToWideChar is being called underneath the hood. So what is the problem with the MFC version?