LNK1124 error debugger cannot find .exe file - c++

image of error
I'm having an error with visual studio every time I'm trying to use cin to get the guess of the user without that it works fine.
code
console message with error

this happening to me since I install visual studio 2017 just a couple of days ago.
I'm trying to learn c++ for unreal engine just started learning and i came across
that error anyone who have this error maybe this can be helpful for them.
first, let me tell you wah t the problem was i was trying to run a 32bit debugger on my 64bit pc cause visual studio install it that way so if you are getting this error on any of your projects all you have to do is change the project to an x64 bit project.
go to the Top bar "Build"
then go to "Configuration manager"
in there change it to x64 bit instead of 32bit
hopefully this can help someone
the link to the page that i read to fix is here.
after all the changes code runs well and no error anymore.

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.

installed visual code and its giving me include error | path/crtdbg

so i have installed visual code after trying to learn some basics. i have installed visual studio 2022 before so i have that on my computer. i tried changing the path but im still getting the same error. i have installed vs code on another drive. i was wondering if anyone know how to fix this or whats causing it. i attached a screenshot of terminal to so you can see the error for yourself.
Image
Thanks

Cant run C++ onto console in Visual Studio Code

Every time I click F5 to debug or run my code to console, I only receive an error message and im not so sure what to do. Im new to VSCode and help is highly appreciated.
I get an error saying: launch program " does not exist
Any advice as to what I should do? My OS is windows 10.
I've tried installing code runner and reinstalling visual studio all together. Though I cant find anything on the internet for any information.

Updated Visual Studio, OpenCV Project No Longer Working

I had this working OpenCV project in visual studio 2017. I update Visual Studio to version 15.6.4 yesterday and the project no longer worked. The include files are still there, so are the dlls. The environment settings have not changed.
I tried opening other OpenCV projects that I know also worked for sure before the update and I'm getting the same error so I know my it's most likely not my code.
Here are the errors I'm getting:
I'd really appreciate any help if possible. It was a huge hassle for me getting the environment running the first time and now for this to happen is insanely frustrating, I just really want to start worrying about the actual code instead of all these inconvenient problems that are stopping me dead in my tracks.
After the update, the project was targeted for Windows SDK version 10.0.16299.0 which was not found on my device.
I right clicked on the solution and clicked retarget solution and that fixed the problem.

The application was unable to start correctly (0xc00007b)

I've searched at a lot of places, asked a lot of people, but didn't found an answer to fix this issue..
I've just created a game in C++ with SFML in Visual Studio Community 2015. My project settings are set like they have to (followed this guide).
When I runu the game on my pc, it works totally fine. If it runs on a pc without Visual Studio 2015, it will crash and returns the following error:
The application was unable to start correctly (0xc00007b)
I've also downloaded Dependency Walker, to check the .exe on errors and it results a couuple of errors. They can be seen in this screenshot. Sorry for the dutch error after Error opening file. It says: The system can't find the given file.
These are the dll's I'm icluding in the root folder of my game:
I'm hoping you guys can help me out.. Thanks in advance!
This error code rings a bell - have you installed the visual c++ redistributable package on the PCs where VS is not installed? You should be able to find the package in your VS folder (program files).