VC6 转 VS2008

 

VC 6.0 Project Debugging and Compiling 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 inVS2008 IDE, which has more advanced features. Here I have few settings which need to be done in order to run the project inVS2008.

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

 

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.

 

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

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

 

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

 

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

 

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

 

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

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

 

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

 

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.

 

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

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

 

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

Thanks,
Muralekarthick
www.decodedsolutions.co.uk

 

http://www.codeproject.com/KB/dotnet/VC6_0_project_compiling_.aspx
  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值