Visual Studio (.exe) export not working [closed] - c++

Closed. This question needs debugging details. It is not currently accepting answers.
Edit the question to include desired behavior, a specific problem or error, and the shortest code necessary to reproduce the problem. This will help others answer the question.
Closed 6 years ago.
Improve this question
I've made a simple program in c++ and SDL that utilizes both SDL_Mixer and SDL_Image. However when I try to run the .exe in the debug folder I receive a black screen with no sound or images despite the program working quite properly in Visual Studio. All the dll's are where they should be and I've made sure everything should work. So why am I receiving a black screen instead of my program. Thanks.

I receive ... no ... images despite the program working quite properly in Visual Studio.
If you're using relative paths to load external resources like images then verify your program's working directory matches what it is when Visual Studio launches it.

Related

How do I find and put the correct dependances for my program? [closed]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
This question does not appear to be about programming within the scope defined in the help center.
Closed 2 days ago.
Improve this question
I was programming in C++ a small program using QMultiMedia and QAudioOutput.
I compile and run my program in Qt (6.4) without error however when I run my program in File Explorer, when all DLLs are present, I get this error:
'could not load multimedia backend'"
QtMultimedia is not currently supported on this platform or compiler.'
So I started my research and I found several solutions however I did not understand their explanations very well (I start ...).
Here are the links I found:
-> Qt forum
-> Bugreports
-> CSDN
I tried to copy all the DLLs in mingw/bin in my folder or there is my .exe, I also copied the multimedia plugin (from mingw/plugins) to my folder or there is my .exe.
I'm on Windows 10 22h2.
Could you give me a clearer explanation? I would be very grateful.
Kind regards
Albin

Registering shell verb with regsvr32 on Windows 11 [closed]

Closed. This question needs debugging details. It is not currently accepting answers.
Edit the question to include desired behavior, a specific problem or error, and the shortest code necessary to reproduce the problem. This will help others answer the question.
Closed 4 days ago.
Improve this question
I built this sample and tested it on Windows 7 and Windows 10 with success, but when I register the built DLL with regsvr32 on Window 11, it looks like Explorer does not load the DLL.
Here is what I tried:
I tried registering from the console with admin rights.
I tried signing the DLL with a certificate
I tried changing the CLSID
On each system where registering the DLL worked, I could see that Explorer loads the registered DLL when a file with *.txt extension is clicked with the right mouse button. I put debugs into functions called by DllRegisterServer (in dll.cpp) and it looks like all registry keys were created successfully.
Is there any special treatment to make it work on Windows 11?

nupenGl and visual studio 2015 [closed]

Closed. This question needs debugging details. It is not currently accepting answers.
Edit the question to include desired behavior, a specific problem or error, and the shortest code necessary to reproduce the problem. This will help others answer the question.
Closed 6 years ago.
Improve this question
I am using Visual C++ 2015. I downloaded NupenGl and extracted and when creating new projects I set the additional include libraries and additional linker input.
When I run the program I get error:
glutInit(& amp; argc, argv); // amp is undeclared identifier
so what's missing? thanks in advance
You have broken sources. Correct code should be: glutInit(&argc, argv);.
It seems that & was replaced by & converting the text to URL representation. If you downloaded that code - try another method of downloading without breaking files.

Visual Studio 2015: When using C++ webview: Access violation writing location 0x00000000 [closed]

Closed. This question needs debugging details. It is not currently accepting answers.
Edit the question to include desired behavior, a specific problem or error, and the shortest code necessary to reproduce the problem. This will help others answer the question.
Closed 6 years ago.
Improve this question
I created a C++ Blank App (Universal Windows) in Visual Studio 2015 Update 2. I added a webview and when running the app in Debug or Release mode, it crashes with error: Access violation writing location 0x00000000.
If I perform similar steps using C# or Visual Basic, I do not get the error. Any help?
I can reproduce your issue if I debug the C++ app in x86 arch on a x64 machine which OS build is 10586.318, Version 1511 and Windows SDK is also 10586. If you change your project's platform to x64 or choose "Start Without Debugging", you can run your app successfully.
And as I've tested, this issue has been fixed in Windows Insider Preview 14316.rs1, it's possible to be delivered in the following released version.
You're welcome to join the Windows Insider Program and give us feedback on our latest work.

I'm currently creating my first Windows Device Driver "Hello world." activity. I'm using Microsoft Visual Studio 2012. [closed]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
Questions asking for code must demonstrate a minimal understanding of the problem being solved. Include attempted solutions, why they didn't work, and the expected results. See also: Stack Overflow question checklist
Closed 9 years ago.
Improve this question
How do I generate a .sys file so that I can load it in the OSRloader?
A .sys file is basically a .dll file that only depends on the kernel.
You'll need the Windows Driver Kit's libraries (especially ntoskrnl.lib).
Open up the project properties and:
Select Linker->Input, then change Ignore All Default Libraries to Yes.
Select Linker->Input, then add ntoskrnl.lib to Additional Dependencies.
Select Linker->System, then change Driver to to Driver, and Subsystem to Native.
Select Linker->Advanced, then change Entry Point to DriverEntry.
Select Linker->Advanced, then change Image Has Safe Exception Handlers to No (if it's there).
Do these for both Debug and Release configurations (you might not be able to use the Debug build).
Then build. You may also need to add other libraries (e.g. BufferOverflowK.lib).