Talk About Network



Register and Login
Nick
Password
Register create new account Sign up is FREE and you can post replies, new topics, bookmark posts and more!
Recover lost password


Programming > Codewarrior Windows > wchar_t woes
Latest [ Topics | Posts ] Archive Post A New Topic Post a Reply
<< Topic < Post Post 1 of 2 Topic 230 of 318
Post > Topic >>

wchar_t woes

by Darrin Cardani <dcardani@[EMAIL PROTECTED] > Nov 11, 2004 at 10:12 AM

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




 2 Posts in Topic:
wchar_t woes
Darrin Cardani <dcarda  2004-11-11 10:12:07 
Re: wchar_t woes
MW Ron <mwron@[EMAIL P  2004-11-16 17:50:22 

Post A Reply:
  Go here to Signup

AddThis Feed Button


About - Advertising - Contact - Frequently Asked Questions - Privacy Policy - Terms of Use - Signup

Contact
tan12V112 Tue May 13 0:23:31 CDT 2008.