从VC ++ 6.0迁移到Visual Studio 2010 [英] Migration from VC++ 6.0 to Visual Studio 2010

查看:101
本文介绍了从VC ++ 6.0迁移到Visual Studio 2010的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想将我的应用程序从VC ++ 6.0迁移到MS Visual Studio2010.
我正在考虑在Visual 2010中编译我的旧代码(VC ++ 6.0),并解决编译器错误.可以吗或者我需要进行任何修改.

我的应用程序有一个exe,其他所有模块都是dll.

我相信我需要在Visual Studio 2010中编译exe和dll.
可以吗或者我只能编译exe,而dll可以按原样使用.
因为dll是在旧的VC ++ 6.0中创建的.我正在考虑在Visual 2010中编译旧代码(VC ++ 6.0)
>>并解决编译器错误.可以吗或者我需要做任何
>>修改.
视情况而定,直到尝试过:)

>>我相信我需要同时编译exe和
>> Visual Studio 2010中的dll.
重新编译所有内容可能是最明智的选择

>>或者我只能编译exe和dlls
>>可以原样使用.因为dll是
>>在旧的VC ++ 6.0中创建的..
如果dll公开了c api,并且资源管理(如内存管理)严格封装在dll中,则可能有效.如果是这样的话,您可能在最初的设计中就花了一些时间.

最好的选择可能是使用Visual C ++ 2010重新编译它们.

问候
Espen Harlinn


I want to migrate my application from VC++ 6.0 to MS Visual studio 2010.
I am thinking to compile my old code(VC++ 6.0) in Visual 2010 and resolve the compiler errors. Is it ok? Or I need to do any modification.

My application is having one exe and all other modules are dlls.

I believe that I need to compile exe as well as dlls in visual studio 2010.
Is it ok? Or I can only compile exe and dlls can be used as it is.
Because dlls are created in old VC++6.0.

解决方案

>> I am thinking to compile my old code(VC++ 6.0) in Visual 2010
>> and resolve the compiler errors. Is it ok? Or I need to do any
>> modification.
Depends, you can''t know until you''ve tried :)

>> I believe that I need to compile exe as well as
>> dlls in visual studio 2010.
Recompiling it all would probably be the most sensible option

>> Or I can only compile exe and dlls
>> can be used as it is.Because dlls are
>> created in old VC++6.0..
If the dll''s exposes a c api, and resource management, like memory management, is strictly encapsulated inside the dll''s this may work. If that the case you probably spent some time on this during your initial desing.

Your best option is probably to recompile it all using Visual C++ 2010.

Regards
Espen Harlinn


这篇关于从VC ++ 6.0迁移到Visual Studio 2010的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆