Unreal Engine crash fter creating a c++ class

Hi!

When I created a c++ file in my project, instead of opening it, Unreal engine crashed.
Now, whenever I want to reopen the project, I get the message

“The following files are missing or built with a different engine version:
UE4Editor-Name.dll
Would you like to rebuild them now?”

If I click “yes”, I then get the message:

“Build could not be compiled. Try rebuilding from source manually”

So I looked up some solutions on the internet and people say you should open the visual studio solution and go from there.

However, I don’t have any .sln in my project folder, and when I use the option “generate Visual Studio project files” nothing happens.

So, how can I fix this?

It means whatever you’ve done in C++ does not compile, so you need to open the visual studio project and find out why by trying to compile it there.