473,387 Members | 1,834 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,387 software developers and data experts.

VC6->VC7 Warning C4005 with Warning lvl=3

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
Nov 17 '05 #1
1 1594
>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
Nov 17 '05 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

3
by: Daylor | last post by:
hi. i got a sample project written in vc6. when i compile and build the exe (debug mode ) , the exe file size is 221KB, and the program work ok. if i open this project in vc7 , build the exe,...
6
by: David Lack | last post by:
Hi, I recently installed a 60-day trial of .NET 2003 on my development system. I made tests with previous personal projects (which compiled ok with VC6) and some open source files, and keep...
2
by: James Clark | last post by:
We've been using VC6 for some time and are trying to port some specific code to VC7.1 (VC++ .Net 2003). But I've come across problems where __forceinline doesn't inline simple inline assembly that...
0
by: Michael Ash | last post by:
from http://msdn.microsoft.com/archive/default.asp?url=/archive/en-us/samples/internet/browser/atlbrowser/default.asp VC6. No problem. VC7. Warnings: statreg.cpp is obsolete. Please remove it...
2
by: | last post by:
I try to build dll in VC .NET, In that project I use dlls that were built in VC6, and I get a lot of errors. (for example <iostream.h> instead of <iostream> etc.) I am not aloud to change anything...
4
by: lauch2 | last post by:
I have a project that contains a COM object running in the in-process configuration. The project was developed by VC6.0 with SP 3. The project has been put into production for long period of time...
3
by: lauch2 | last post by:
Can anyone talk me is there existed a "default" value for a un-initialized int variable in a release build in VC6 and VC7.1. (I know there is a compilation warning) For Example: main(){ int a;...
6
by: | last post by:
The following code snippet can be build in VC 6.0, but failed in VC 2003. //////////////save the following code in t.cpp #define _MT #define _WIN32_WINNT 0x0500 #include <iostream> #include...
1
by: William GS | last post by:
Hello, I have some VC6 DLLs and I want to use them with NET EXEs (MFC 7.0), but the linker give me many errors, especially in functios with CStrings (parameters or return); How can I fix it? or...
16
by: David Wilkinson | last post by:
Does anybody know if there are any issues installing VC6 after VC7? Right now I have VC5, VC7 and VC7.1 running on the machine, and they run quite happily together. But they were installed in...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.