Click here to Skip to main content
15,125,104 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
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.
Posted
Updated 11-Jan-11 0:00am
v2

1 solution

>> 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
   
Comments
Sergey Alexandrovich Kryukov 11-Jan-11 11:05am
   
Espen, you're right - my 5.
The attitude "it's working, let's not touch it" in real life is very destructive. Code really works only if it is involved in build cycle, recompiled and re-tested as development goes.
Espen Harlinn 11-Jan-11 11:06am
   
Thanks SAKryukov!

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




CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900