VC6->VC7 Warning C4005 with Warning lvl=3

  • Thread starter Thread starter AST
  • Start date Start date
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
 
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
 
Back
Top