How to Migrate from VC 5.0 to VC 9.0

How to Migrate from VC 5.0 to VC 9.0

We are having a big project built in VC 5.0. Now I am trying to build all the applications in VC 9.0. What would be the best approach to follow while migration of the source code. Are there any existing articles which guide us in doing this (especially in resolving the compilation errors with header files)?

Migrating from VC5 to VC9 is a big jump. I'd probably avoid using the migration wizard entirely, and start with a skeleton VC9 project, choosing the most appropriate project template. Now start moving source code over one file at a time, compiling as you go. The errors that need to pop up will have a pattern which will be useful to you. I think this is more effective that trying to use the migration wizard to move everything all at once.

We are having a big project built in VC 5.0. Now I am trying to build all the applications in VC 9.0. What would be the best approach to follow while migration of the source code. Are there any existing articles which guide us in doing this (especially in resolving the compilation errors with header files)?

If you use the old iostream library <iostream.h> then you will have to convert to using the C++ library version <iostream>. If it were me, I would do this using VC5 (iostream.h was already obsolete in VC5).

Other than that, I would just import into VC9 and start fixing the errors. If the code was written carefully, there may not be any...

Copyright © 2007-2012 www.chuibin.com Chuibin Copyright