Re: VC6->VC7 Warning C4005 with Warning lvl=3



>When migrating VC6 projects to VC7 I often get this warning when compiling
>the source files that were original VC6 project files that did not emit this
>warning: This appears to be related to the original stdafx.h file contents.
>
>[Warning C4005: 'UNICODE' macro redefinition] with the warning level set to
>3
>
>Is there an option or switch I have set wrong?

Bill,

The UNICODE (and _UNICODE) preprocessor setting is done from the
project properties UI in later versions of VS.

Try removing any definition you had in your source files and see if
that resolves the issue.

Dave
--
MVP VC++ FAQ: http://www.mvps.org/vcfaq
.



Relevant Pages

  • Re: Converting MBCS project to UNICODE compliant.. Pros and Cons
    ... using TCHAR or _T will only help to save code modification time when you ... My concern was should switch all ... Should i keep this in ASCII form or converting it to Unicode string wont eat ... use TCHAR compatible functions or WCHAR? ...
    (microsoft.public.vc.language)
  • Re: Python 2.5 and Unicode on MacOS
    ... failed to convert both arguments to Unicode - interpreting them as being ... BeautifulSoup now fails its unit tests, citing the same warning. ... For reference, I have done a framework build of Python, and it seems to ...
    (comp.lang.python)
  • Re: newbie problem; wierd "Hello World" MessageBox output
    ... I had compiled some sample projects that ... Unicode ...", ... in my second post (I hadn't noticed them ... I did get warning C4133: ...
    (microsoft.public.vstudio.general)
  • Re: Program entry point question!
    ... and by always building for UNICODE. ... switch to TCHAR, LPTSTR, etc., which switch from char to WCHAR when ... I _strongly_ recommend taking some ... If you choose to use TCHAR ...
    (microsoft.public.windowsce.app.development)
  • Re: Unicode Mode
    ... The article explains Unicode, its benefits, and how to enforce it but not ... >> an error message when they attempt to setup their archive file using the ... >> in Unicode mode against Exchange server and cannot archive items to a ... I can't seem to find any documentation on how to switch from ...
    (microsoft.public.outlook.general)