Saturday, October 23, 2021

Case Study 5: Porting legacy Visual C++ projects

Case Study 5: Porting legacy Visual C++ projects

    Guide from Microsoft

  1. microsoft/VCSamples
  2. all historical samples since 2008.

  3. Upgrade C++ projects from earlier versions of Visual Studio
  4. To upgrade a project created in an earlier version of Visual Studio, just open the project in the latest version of Visual Studio. Visual Studio offers to upgrade the project to the current schema..

  5. Microsoft C++ porting and upgrading guide
  6. This article provides a guide for upgrading Microsoft C++ code to the latest version of Visual Studio. For projects created in Visual Studio 2010 through 2017, just open the project in Visual Studio 2019. You can upgrade a Visual Studio 2008 or earlier project in two steps. Use Visual Studio 2010 to convert the project to MSBuild format first. Then open the project in Visual Studio 2019. For complete instructions, see Upgrading C++ projects from earlier versions of Visual Studio.

    The toolsets in Visual Studio 2015, Visual Studio 2017, and Visual Studio 2019 are binary-compatible. Now you can upgrade to a more recent version of the compiler without having to upgrade your library dependencies. For more information, see C++ binary compatibility 2015-2019.

    An Exercise

  7. Porting a legacy MFC application to MFC Feature Pack
  8. Problems I encountered when polishing the GUI of an existing 200K LOC application..

    More Reference

  9. Porting legacy code
  10. This is a paragraph.

  11. How to Handle Legacy Code: A Detailed Guide Based on a Real-Life ExampleIt was originally published on https://www.apriorit.com/
  12. This is a paragraph.

  13. Recommended migration strategy for C++ project in Visual Studio 6
  14. For a large application written in C++ using Visual Studio 6, what is the best way to move into the modern era?

    I'd like to take an incremental approach where we slowly move portions of the code and write new features into C# for example and compile that into a library or dll that can be referenced from the legacy application..

  15. Update WINVER and _WIN32_WINNT
  16. When you use the Windows SDK, you can specify which versions of Windows your code can run on. The preprocessor macros WINVER and _WIN32_WINNT specify the minimum operating system version your code supports. Visual Studio and the Microsoft C++ compiler support targeting Windows 7 SP1 and later. Older toolsets include support for Windows XP SP2, Windows Server 2003 SP1, Vista, and Windows Server 2008. Windows 95, Windows 98, Windows ME, Windows NT, and Windows 2000 are unsupported.

    When you upgrade an older project, you may need to update your WINVER or _WIN32_WINNT macros. If they're assigned values for an unsupported version of Windows, you may see compilation errors related to these macros..

No comments:

Post a Comment