How can I build the setup.exe file in visual studio? - c++

I have a C++ game that I have made with Visual Studio 2022. I have built the setup.exe and setup.msi. But my friends are not able to run that game after installing it. On the other hand the setup files works perfectly on my computer.
But they get this error message:
The application was unable to start correctly (0xc000007b) Click here
to close the application

Related

"Entry point DPAlInit could not be located in dll" error in Visual Studio

I downloaded and run a C++ project for Digital-persona-sdk finger print. I run the environment in Visual Studio (Windows 10 64-bit). Compilation is done, but when I run the exe, this problem occurs:
Does anyone have an idea for solving this problem? Or, can you please give me any other sample project for working with the Digital persona fingerprint sdk in C++?
I find out the problem. It problem is my project has a window application. But i run the console application and select win32.

I cannot run my C++ app without running visual studio community 2022

When I built my program and deleted visual studio(cause I didn't want it anymore) I cannot run my application.
The app first asks for two DLL files ( vcruntime140d.dll and ucrtbased.dll). I downloaded it then I got an error that the application could not start correctly (0xc000007b).
I reinstalled Visual Studio again and rebuilt it with a full database. Then delete the visual studio and tried to run the application again and I get the same error.

Exe file from a console project in Visual Studio?

I want to execute a C++ program in a second machine without any IDE.
I tried to launch the .exe file which is located in the debug folder of the project and to generate a .exe file following this guide.
Both .exe gave me the same errors (launched manually and from a prompt):
The program can’t start because
- VCRUNTIME140D.dll
- MSVCP140D.dll
- VCRUNTIME140_1D.dll
- ucrtbased.dll
is missing from your computer. [...]
So i try to uninstall and reinstall Microsoft Visual C++ Redistributable per Visual Studio 2015, 2017 e 2019 from there, but still the same errors.
What am I missing? How can I run it without install the whole Visual Studio IDE? Thanks for your time.
You need to compile your program to a Release exe file. Compiling your program using Debug will never work on any device unless it has Visual Studio installed on it.
Why this happens?
If you select debugging, before the program runs it loads some DLL files for debugging in visual studio. Now, on other machines visual studio may not be installed, so it couldn't find the DLL files so it will just not start. But Release, it is like its name, when you want to send your program to a friend or use it on another computer or share it on the internet, use Release. But if you are testing bugs and still working on the program, use Debug.

Carbon Black Bit9 is blocking the project execution on VS 2017, but it is working on VS 2015 on the same machine

I have a strange issue with a projects that I am trying to start from Visual Studio 2017 - project's exe file is getting blocked by Bit9. And it happens only with Visual Studio 2017, and the same is working with VS 2015.
What I can see from Bit9 screen is that msvsmon.exe is trying to run MyProject.exe and it gets blocked. I guess this is some setting on visual studio side but I cannot figure out what to change.
I looked on the internet and I checked Debug tab of the project, and Use remote machine was already deselected.

Qml in Visual Studio

I Have created a program using qml in Qt. Here it is working fine. But when I am trying to run the same app in the visual studio it is not. There is no error in building the program in Visual Studio. When I run the program using "F5" its running & closing automatically with out showing any thing.
What could be the error???
In my case it was that the debugger of the visual studio runs in a different path than the output is.
So I had to adjust in the project properties the "Working Directory" of the debugger.