The global CWinApp object initialized twice when vs2008 upgrade to vs2017

ShowMeYourCode 1 Reputation point
2022-02-14T08:10:37.45+00:00

In vs2008, My Project works normally, but when I upgrade to vs201, the global CWinApp object be called twice and occur the error: "ASSERT(AfxGetThread() == NULL); (appcore.cpp)"
I dont know what happen! = _ =!!!

C++
C++
A high-level, general-purpose programming language, created as an extension of the C programming language, that has object-oriented, generic, and functional features in addition to facilities for low-level memory manipulation.
3,690 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.
987 questions
{count} votes

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.