# My C++ classes disappear after reopening the project. Why?

**URL:** <https://forums.unrealengine.com/t/my-c-classes-disappear-after-reopening-the-project-why/535990>\
**Category:** C++\
**Tags:** unreal-engine, UE5-0, question\
**Created:** [April 21, 2022, 6:49pm UTC](https://forums.unrealengine.com/t/my-c-classes-disappear-after-reopening-the-project-why/535990 "2022-04-21T18:49:15Z")\
**Posts on this page:** 1\
**Showing post:** 6

<div class="post-metadata">

**Author:** ![anonymous\_user\_f899ea4a](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_f899ea4a](https://forums.unrealengine.com/u/anonymous_user_f899ea4a)\
**Post date:** [April 22, 2022, 8:17pm UTC](https://forums.unrealengine.com/t/my-c-classes-disappear-after-reopening-the-project-why/535990/6 "2022-04-22T20:17:25Z")

</div>

Thank you Zeaf. I launch the project from the launcher and i use the ide to write c++ code.  
I have deleted intermediate and binaries folders,then the launcher asks me if i want to rebuild the project. After that,when i open the project,my classes reappear again but when i open visual studio,the editor tells me that the project does not exist.  
So,after deleting intermediate and binaries folders and rebuilding

- i close ide and project,and then open again the project
- In World Settings/ GameMode override,i select MyGameModeBase (derived from GameModeBase),this is fundamental!
- if i open visual studio,the project is there,with all the code.
- AND EVERYTHING WORKS

---

_[View the full topic](https://forums.unrealengine.com/t/my-c-classes-disappear-after-reopening-the-project-why/535990)._
