VS2017静态库中使用mfc,项目打不开了

帅 王 1 Reputation point
2021-08-17T07:20:25.367+00:00

请教一个问题,VS2017,C++项目, 设置成在静态库中使用mfc,关掉VS工程,重新打开显示项目被卸载,该怎么解决这个问题呢?

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,959 questions
{count} votes

11 answers

Sort by: Most helpful
  1. Jeanine Zhang-MSFT 11,351 Reputation points Microsoft External Staff
    2021-08-18T03:14:36.997+00:00

    Hi

    I suggest you could try to Reload Project. In Solution Explorer, select the projects you want to load (press Ctrl while clicking to select more than one project), and then right-click on the project and choose Reload Project.

    The reason for this issue may be that you selected Do not load projects when you opened the project. It may also be that something are missing and need to be installed. You could install it directly according to the prompts.

    PS: Currently in Microsoft Q&A we only support English, could you please edit your question into English?

    Best Regards,

    Jeanine


    If the response is helpful, please click "Accept Answer" and upvote it.

    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. 帅 王 1 Reputation point
    2021-09-01T03:48:20.89+00:00

    Using MFC in vs2017 static library, the project cannot be opened
    Please ask a question, vs2017, the C + + project is set to use MFC in the static library, turn off the vs project, reopen the display, and the project is unloaded. How to solve this problem?

    0 comments No comments

  3. Guido Franzke 2,191 Reputation points
    2021-09-01T10:41:05.593+00:00

    Hello,
    ok, the project was "unloaded", not "uninstalled". I understand.
    Have a look at this article: solutionplusfilepluswasplusunloaded
    There are many different suggestions how to solve the problem.
    Regards, Guido

    0 comments No comments

  4. 帅 王 1 Reputation point
    2021-09-02T00:22:42.487+00:00

    Can you try this? Create a new C + + project, set the project -- > properties -- > use of MFC -- > "use MFC in static", close the project, and then reopen the project. You will find that the display project is unloaded and cannot be loaded. How to solve this problem?


  5. 帅 王 1 Reputation point
    2021-09-03T08:46:53.123+00:00

    129045-1.png129046-2.png128990-3.png129034-4.png129047-5.png

    restart VS 2017 project
    128970-6.png

    0 comments No comments

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.