I have a Windows project that is in MSVC and I'm trying to get it to
compile using CodeWarrior Pro 8.3 on Mac OS. (That is I'm just trying
to get the Windows version building on the Mac. I haven't yet started
on porting it to the Mac.)
The MSVC project defines UNICODE and _UNICODE. However, if I do that, I
get an error in Microsoft's atlconv.h file on line 126 (and a few
subsequent lines). It looks like this:
inline LPCOLESTR T2COLE(LPCTSTR lp) {return lp;}
The error is that this is an illegal implicit conversion from 'const
char*' to 'const wchar_t*'.
That would seem to be true. I have wchar_t support turned on. Should I
not? I don't see how that line can compile with wchar_t support turned
on and UNICODE defined. What are MSVC's settings in a case like this?
Also, should I be #defining _MBCS?
Thanks,
Darrin