VC6->VC7 Warning C4005 with Warning lvl=3

A

AST

Hey,

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?

Best regards,

Bill
 
D

David Lowndes

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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top