Click here to Skip to main content
15,881,089 members
Articles / Programming Languages / Visual C++ 9.0

VC 6.0 Project Debugging and Compiling in VS 2008

Rate me:
Please Sign up or sign in to vote.
4.20/5 (5 votes)
3 Jul 2010CPOL2 min read 33.3K   24   7
Compiling and debugging VC++ 6.0 project in VS 2008

Introduction

This article explains debugging and compiling earlier versions of VC++, MFC project in Visual Studio 2008.

Background

It is a pain taking to task for our team of Software Developers to Debug and Compile the MFC VC++ project developed in Microsoft Visual C++ .NET 2003 Edition using MFC libraries v7.0 in VS2008 IDE, which has more advanced features. Here I have few settings which need to be done in order to run the project in VS2008.

Tools -> Options -> Project and Solutions -> VC++ Directories.

Img1.png

The first four paths refer to folders in VC++ directories, you should find exactly the same like this in include and library files.

If you are using different versions of Directx than the one which is used during development of the project, then you need to set the reference to the Directx manually in executable files, Library files and Include files. Just click on the new folder icon and reference the path you should be able to get like below.

VS 2008 supports more advanced features than VC++ 6.0, so we need to narrow down them to what we need.

Right click the project in the Solution Explorer, and select Properties.

Go to Configuration Properties -> C/C++ -> Advanced -> Error Reporting -> Set to Default.

Img3.png

Unicode Response files to ‘NO’ to create response files in plain ASCII, as the way VC6 compiler would need.

Configuration Properties -> C/C++ -> General -> use Unicode Response files -> NO.

img4.png

Configuration Properties -> Linker -> General -> use Unicode Response files -> NO.

img5.png

Configuration Properties -> C/C++ -> Code Generation -> Basic Runtime Checks -> Default.

img6.png

Configuration Properties -> Linker -> Enable Incremental Linking -> No (/INCREMENTAL: NO).

img7.png

We also need to manually include this option in command Line:

Configuration Properties -> Linker -> Command Line -> /INCREMENTAL: NO.

img8.png

Configuration Properties -> Linker -> Manifest File -> Generate Manifest -> No.

img9.png

Need to set the following properties to Default to work perfectly in VS 2008.

Configuration Properties -> Linker -> Advanced-> Randomized Base Address -> Default.

Data Execution Prevention -> Default.

Error Reporting -> Default.

img10.png

You will notice that every time the project is rebuilt, we also might get an error missing vc60.pdb. To avoid this, Set Program database file name to default.

Configuration Properties -> C/C++ -> Output Files -> Set Program Database file name -> Default

img11.png

I hope this information is very useful in compiling and debugging the VC++ project.

Thanks,
Muralekarthick
www.decodedsolutions.co.uk

History

  • 3rd July, 2010: Initial post

License

This article, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)


Written By
United Kingdom United Kingdom
This member has not yet provided a Biography. Assume it's interesting and varied, and probably something to do with programming.

Comments and Discussions

 
Generalanothersimple way Pin
norbert_barbosa26-Oct-10 5:58
norbert_barbosa26-Oct-10 5:58 
GeneralMy vote of 1 Pin
dcantemir8-Jul-10 7:41
dcantemir8-Jul-10 7:41 
GeneralThank you Pin
Martial Spirit5-Jul-10 12:06
Martial Spirit5-Jul-10 12:06 
GeneralRe: Thank you Pin
muralekarthick6-Jul-10 3:31
muralekarthick6-Jul-10 3:31 
General[My vote of 2] Why don't you simply convert your project Pin
ThatsAlok3-Jul-10 2:59
ThatsAlok3-Jul-10 2:59 
GeneralRe: [My vote of 2] Why don't you simply convert your project Pin
muralekarthick3-Jul-10 14:35
muralekarthick3-Jul-10 14:35 
GeneralComments Pin
Md. Marufuzzaman2-Jul-10 19:49
professionalMd. Marufuzzaman2-Jul-10 19:49 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.