Visual studio 15 enterprise is not executing the loaded project - c++

The visual studio 15 enterprise says that "the program cant start because MSVCP100D.dll is missing from your computer" when i load a project and run the test. The program was running perfectly on VS 2010 Ultimate and the program executed perfectly and showed the desired output but after i installed VS 2015 this error is coming. i am using VS for computer graphics using OGL. What should i do?
thanks in advance.

Related

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.

Preparing to distribute my first game, gets error 0xc000007b when trying to run in test environment

I've made a game with Cocos2dx and compiled it for Release/Win32 in Microsoft Visual Studio Community 2019. I've created a virtual machine in Hyper-V (for figuring out what DLLs I need) that runs Windows 10 Pro N. In the test machine I've installed every redistributable Visual C++ package (I think) since 2008, so: 2008 (x86/x64), 2010 (x86/64), 2012 (x86/x64), 2013 (x86/x64), 2015-2019 (x86/x64), but it still gives me the error 0xc000007b when I try to run the app. Strangely, it complains if I don't put vcruntime140d.dll in the app folder, which is odd because the app is compiled for Release, but that file has a d at the end of it, which means it's for apps compiled for Debug, right? I don't know what's going on and I was hoping it would work with all those VC++ packages installed. What do you think could be the problem?

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.

ImageWatch in Visual Studio 2013 : exception has been thrown by the target of an invocation

I currently work with OpenCV C++ in Visual Studion 2013 (Community). I have installed the plugin ImageWatch into Visual Studio, which is useful debugging aid.
After a recent upgrade of Windows 10 (I was already was working with Win 10 and it was fine), I started to receive the following error : "exception has been thrown by the target of an invocation" when opening ImageWatch from 'View/Other Windows/Image Watch'
I have tried un-/re-installing ImageWatch and updated VS 2013 to the latest .Net Version (5.0) for 2013. I also, as suggested on other posts, where the same error has been generated for different reasons, shortened the length/removed some of the lengthy less used System Environmental Variables. All to no avail.
Part of the symptoms I received from Win 10 update were some missing .dll messages for MSVCP110.dll and MSVCR110.dll, generated directly after start up (of my PC). A quick search indicated that I was missing some crucial Visual C++ Redistributable x64 and x86 updates for Visual Studio 2012. (see http://answers.microsoft.com/en-us/windows/forum/windows_8-winapps/the-program-cant-start-because-msvcr110dll-is/f052d325-3af9-4ae5-990b-b080799724db)
These can be download here:
https://www.microsoft.com/en-us/download/details.aspx?id=30679#
After installing these updates for x64 and x86 and a reboot, the dll messages disappeared at start. Following a reinstallation of ImageWatch plugin, I no logner recieved the "exception has been thrown by the target of an invocation" and Image Watch was opening and running fine.