Visual Studio 2015 Add class, error: "object already exists"

Other similar, but as far as I know, issues not related to:

 

A file or folder with the name '' already exists Visual Studio 2012   Wizard ATL simple objects - "Object Xxx already exists" error
Error:
I'm trying to add a simple class enter image description here  and then go to the master, where I get the following error] 2 : enter image description here "The object is already exist".
I cannot add the "MainGame" class (and several other names) to any project, even if I create a new project

/:
, Release, . Release.

:
.

:
- ?
, ?

, "" , .

+4
5

, .

, ++, , , github. , . , .

sqlite. VC.db .gitignore, git .

, , $(SolutionName).VC.db $(SolutionDir), , [s].

+7

example.h example.cpp Solution, :

AddExisting Item... → .

$(SolutionName).VC.db.

+1

- .h.cpp , , "MainGame" .h.cpp .

0

VS. , .

, , MainGame1, . , CPP .

0

. , :

  • "MainGame.h" "MainGame.cpp". (... , .)
  • .
  • Then finally delete both files from your project by deleting the files from disk.

After that, it will allow you to use this name when creating a new class using the class wizard. This is neither an elegant solution, nor a complete one. This will allow you to overcome this problem. I suspect that I will again come across other names that are not cleared from the database.

0
source

Source: https://habr.com/ru/post/1660860/


All Articles