Gabled characters produced by Visual Studio 2022

Jae Young Lee 0 Reputation points
2023-01-16T03:01:01.33+00:00

Recently, I started working for migration of my software from Visual Studio 2008 to 2022.

After a lot of difficulties with the new IDE, I succeeded in generating the .exe files without errors, one for "Release" version and the other for "Debug" version.

If I try to launch the program by double clicking the .exe file icon, the "Release" version fails with a message "The application was unable to start correctly (0xc0000007b)..."

The "Debug" version runs, but produces unrecognizable (garbled) strings as shown below.

I will appreciate it very much if anyone gives me the tips.

User's image

       VS 2022                                 VS 2008
Visual Studio
Visual Studio
A family of Microsoft suites of integrated development tools for building applications for Windows, the web and mobile devices.
4,599 questions
Visual Studio Debugging
Visual Studio Debugging
Visual Studio: A family of Microsoft suites of integrated development tools for building applications for Windows, the web and mobile devices.Debugging: The act or process of detecting, locating, and correcting logical or syntactical errors in a program or malfunctions in hardware. In hardware contexts, the term troubleshoot is the term more frequently used, especially if the problem is major.
938 questions
Visual Studio Testing
Visual Studio Testing
Visual Studio: A family of Microsoft suites of integrated development tools for building applications for Windows, the web and mobile devices.Testing: The act or process of applying tests as a means of analysis or diagnosis.
328 questions
{count} votes

2 answers

Sort by: Most helpful
  1. Anna Xiu-MSFT 25,551 Reputation points Microsoft Vendor
    2023-01-16T09:30:49.5933333+00:00

    Hi @Jae Young Lee

    Welcome to Microsoft Q&A! 

    What project did you generate .exe files from?

    Please try to run it as administrator and check if it is added to system environment variables.

    Sincerely,

    Anna


    If the answer is the right solution, please click "Accept Answer" and kindly upvote it. If you have extra questions about this answer, please click "Comment". 
    Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.


  2. Jae Young Lee 0 Reputation points
    2023-01-16T10:26:37.2266667+00:00

    The above mentioned problem was resolved by setting the properties of the project as follows:

    1. "Project" -> "Properties" menu item
    2. Property Pages "Configuration Properties" -> "Advanced" pane
    3. Character Set -> Use Multi-Byte Character Set Whole Program Optimization -> Use Link Time Code Generation 4 It is the case of "Debug" version. However, the "Release" version still does not work.
    0 comments No comments