# UE4.24 C++ Unable to start a program UE4.exe

**URL:** <https://forums.unrealengine.com/t/ue4-24-c-unable-to-start-a-program-ue4-exe/461924>\
**Category:** C++\
**Tags:** UE4-24, c-build-fail, unreal-engine, question, CPP\
**Created:** [February 29, 2020, 11:21am UTC](https://forums.unrealengine.com/t/ue4-24-c-unable-to-start-a-program-ue4-exe/461924 "2020-02-29T11:21:56Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![anonymous\_user\_a7f37d3c](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_a7f37d3c](https://forums.unrealengine.com/u/anonymous_user_a7f37d3c)\
**Post date:** [February 29, 2020, 11:21am UTC](https://forums.unrealengine.com/t/ue4-24-c-unable-to-start-a-program-ue4-exe/461924/1 "2020-02-29T11:21:56Z")

</div>

Hello, so I have a project and everything is running OK, I made some C++ classes I did the coding and everything is ok but I have an error when I start debugging. This is what it says

![297087-capture.png](https://d3kjluh73b9h9o.cloudfront.net/original/4X/c/6/7/c67ca1e2443fe78a07d751e196171bc45f2aff19.png)

Is there any way to fix this? I would be very thankful if someone leaves a solution to this problem

---

<div class="post-metadata">

**Author:** ![TuxTheAstronaut](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/tuxtheastronaut/32/1123667_2.png) [@TuxTheAstronaut](https://forums.unrealengine.com/u/TuxTheAstronaut)\
**Post date:** [February 29, 2020, 1:11pm UTC](https://forums.unrealengine.com/t/ue4-24-c-unable-to-start-a-program-ue4-exe/461924/2 "2020-02-29T13:11:07Z")

</div>

Try separating the files if you can and then many you could find out what the problem is I’m not that good at c++ but I would try separating files or moving content to another project to see if that’s the problem.  
Also try open the project snl visual studio file in you project and rebuilding the solution

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_a7f37d3c](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_a7f37d3c](https://forums.unrealengine.com/u/anonymous_user_a7f37d3c)\
**Post date:** [February 29, 2020, 1:38pm UTC](https://forums.unrealengine.com/t/ue4-24-c-unable-to-start-a-program-ue4-exe/461924/3 "2020-02-29T13:38:45Z")

</div>

I already did that with another project even did a blank project and it still gives me this error

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_a7f37d3c](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_a7f37d3c](https://forums.unrealengine.com/u/anonymous_user_a7f37d3c)\
**Post date:** [February 29, 2020, 1:44pm UTC](https://forums.unrealengine.com/t/ue4-24-c-unable-to-start-a-program-ue4-exe/461924/4 "2020-02-29T13:44:52Z")

</div>

Also this happens when I rebuild or build the solution

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_a7f37d3c](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_a7f37d3c](https://forums.unrealengine.com/u/anonymous_user_a7f37d3c)\
**Post date:** [March 1, 2020, 5:42pm UTC](https://forums.unrealengine.com/t/ue4-24-c-unable-to-start-a-program-ue4-exe/461924/5 "2020-03-01T17:42:58Z")

</div>

Ok I fixed it turns out you need to set your game vs project as the startup project

---

<div class="post-metadata">

**Author:** ![meowololo\_1](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/meowololo_1/32/603997_2.png) [@meowololo\_1](https://forums.unrealengine.com/u/meowololo_1)\
**Post date:** [April 13, 2021, 8:34pm UTC](https://forums.unrealengine.com/t/ue4-24-c-unable-to-start-a-program-ue4-exe/461924/6 "2021-04-13T20:34:06Z")

</div>

Where and how i need to do it?  
I don’t understand…

---

<div class="post-metadata">

**Author:** ![Oliverrri](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/oliverrri/32/1002145_2.png) [@Oliverrri](https://forums.unrealengine.com/u/Oliverrri)\
**Post date:** [January 6, 2024, 2:55pm UTC](https://forums.unrealengine.com/t/ue4-24-c-unable-to-start-a-program-ue4-exe/461924/7 "2024-01-06T14:55:34Z")

</div>

> [@anonymous\_user\_a7f37d3c](#):
>
> to set your game vs project as the startup project

In VS find your project (Games/yourproject) , right click to get to properties and in properties click set project as start project.
