Code Execution cannot proceed because SDL2.dll was not found - c++

I'm using Microsoft Visual Studio 2019 with c++ code. I'm working on a new project and Visual Studio has no issues building the code, however when I actually run the program I get this error.
I have SDL2 installed as I have another program that runs just fine. So I'm not really sure what the issue is here.

you can copy the SDL2.dll to the systemm32 folder and that should solve your problem

Related

Unhandled exception at 0x74E733AB (ucrtbase.dll) in OpenClaw.exe

I wanted to tinker this open source remake of the famous Claw.
Visit https://github.com/pjasicek/OpenClaw
Before I start with how I've cloned this game and tried to build it, I'm new to the open source community. I did the following things.
I cloned the repository.
Opened the project using Visual Studio 2017 Community edition and I changed the Configuration to Release and platform to Win32.
I then built the libwap solution without any errors.
Then I used CMake 3.11.0 to generate the required files for the Box2D solution and then generated it and then the Box2D build was a success.
I built the Midiproc manually and finally, I tried building the entire solution.
It threw a MSVCR120D.dll missing error and I copied all the .dlls from the game's release folder https://github.com/pjasicek/OpenClaw/releases
Now the game runs just fine when I launch it from the File explorer, but when I try to launch it from Visual Studio 2017, it throws the following error.
Check out this image:
How do I run the game from Visual Studio? Have I misconfigured the Visual Studio?
If you need any more details on what I did, please let me know.
[EDIT] I want to configure Visual Studio to be able to run the release and modify the source code so I can tinker it and try to understand how the game works internally.
I cloned the repository again and did a clean compilation of all the solutions. Turns out there was a problem when I copied/overwritten all dlls from the release build. Now, the game builds and executes fine.
Thanks for the help.

Visual studio 2015 not compile changes c++

from some time visual c++ compiler not compiling my code, I tried to do things that are there: Visual Studio 2013 C++ not compiling changes
Cleaning soultion works in my case, but after compilation i must do it again and so always. I saw also Build solution options and build configuration and there are OK. I moved project, delete execute file but it also not helped me.
What I can do to fix it? :(

Visual Studio freeglut/glew error ("missing from computer")

Long story short:
I'm at home trying to run a project I've been tinkering with in school (OpenGL).
When trying to run the unchanged program, I get errors saying freeglut.dll is missing.
The thing is:
I have freeglut and glew on my computer
I am running the same version of Visual Studio (2013)
The path to the libraries and such is exactly the same due to the glew and freeglut-files being located in a Dropbox-folder on both PCs.
The .dlls are also located in the same folders as the .exe
I have tried rebuilding, cleaning, starting a new project with the same files, moving the freeglut and glew-files to different folders, but for some reason it doesn't seem to work.
Have you tried rebooting your system?
SOLVED: Turns out I had Visual Studio Ultimate on the non-working PC and not Visual Studio Professional. Installing Professional did the trick.

OpenCV 2.4.8 Visual Studio 2012

I installed OpenCV 2.4.8 on Visual Studion 2012 (I am a student in CS, so VS is from dreamspark)
I did everything in the installation steps. Then I wrote a simple program to read an image and display it on the screen. When I first compile it, it gives me the error: "The program can't start because opencv_core248d.dll is missing from your computer. Try reinstalling the program to fix this problem.". BUT !!! When I go to the project folder, and run the .sln file, and THEN compile, IT WORKS! There are no missing dlls, the PATH is created, I saved the property sheets so I don't have to repeat the steps each time. So, why doesn't it compile within the IDE, and yet it does run fine in the second window IDE.
How do I solve this problem.
I SOLVED IT !!! Finally! After you write the directory in your PATH, you have to restart the computer, otherwise VS doesn't know where the dlls are. That's why it works when you open the project manually, and not within the IDE

OpenGL: How to compile glew32.dll from source file

I download the glew source file from http://glew.sourceforge.net/.
In the readme file, it says I should use \build\vc6.0\glew.dsw to comple the DLL.
But there are four projects after I open it in VS 2010.
When I compile them, 2 of them failed to compile.
Thanks.
Ok.
I figured it out.
Just open the the file in glew.dsw in VS 2010.
There are four projects.
Compile glew_shared, you will get glew32d.dll.
Compile glew_static, you will get glew32d.lib.
just ignore the other two.
glew32d.dll and glew32d.lib works fine in VS 2010.
This also answer my own question in
Glew in VS 2010: unresolved external symbol __imp__glewInit
Just a guess but by the way that folder is labelled, it's probably meant to compile using Visual C++ 6.0, which came with Visual Studio 6. I just gave it a quick try and built without problems under that IDE. Of course, I don't believe Microsoft offers that product anymore. If you want to build it yourself, you'll probably have to upgrade the code base to Visual C++ 2010.
I ran into the same problem. I converted the original project to Visual Studio 2010 and placed the result in https://github.com/chrisoei/glew. See the downloads section for a zip file containing glew32.dll built using VS 2010.