Share via

Adding a variable

Pushkins 156 Reputation points
2021-11-22T05:15:53.42+00:00

Hi

Hope somebody can help me

When I go into a dialog resource and add a tool e.g. ComboBox then right click on it and choose Add Variable, Visual Studio Crashes with a Microsoft Visual Studio Not Responding. It then stays like this for a long time before the Add Variable dialog box pops up.

Is there something I can do to fix this? Is it a corrupt file somewhere.

Thank you

Visual Studio 2022 Windows 10

Developer technologies | C++
Developer technologies | 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.


Answer accepted by question author

Pushkins 156 Reputation points
2021-11-22T21:05:42.697+00:00

Hi

Managed to replace the project from a backup. Fortunately not to much had been done between backups.

Created a new test project and it worked properly. So my only guess is some how something got corrupted along the line somewhere.

Thank you

Was this answer helpful?


1 additional answer

Sort by: Most helpful
  1. Petrus 【KIM】 546 Reputation points
    2021-11-22T07:16:38.273+00:00
    • Check your project is a MFC Style.
    • Remove (Delete) your dialog class with the specified Dialog ID, in Resource file (*.rc).
    • Restart Visual Studio 2022 (Command Prompt > devenv /ResetSettings )
    • Re-Create dialog class with "Class Wizard", then Add Variable.

    Was this answer helpful?

    0 comments No comments

Your answer

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