All Questions
23,072
questions
0
votes
0
answers
4
views
Giving application window active focus when opening a file
In the documentation for QWidget::activateWindow() function, the following is said:
... On Windows, if you are calling this when the application is not
currently the active one then it will not make ...
0
votes
0
answers
37
views
Long path aware manifest opt in on older versions of Windows
I have a c++ program for which i created manifest file and set long path aware to true. On newer versions of windows it works as expected.
But what will happen if i launch my app on older versions of ...
0
votes
0
answers
32
views
Address Sanitizer do not show nothing and lsan_is_turned_off
I'm trying to use address sanitizer in my main.cpp on Windows.
Makefile:
default:
clang++ main.cpp -o app.exe -fsanitize=address -g
set ASAN_OPTIONS=detect_leaks=1
./app.exe
main.cpp
#...
0
votes
0
answers
69
views
C++: unable to catch fprintf exception
my application crashed on release on a fprintf on null stream, and even if I added the catcher:
#include <windows.h>
#include <iostream>
#include <errhandlingapi.h>
...
0
votes
0
answers
26
views
Windows API ISimpleAudioVolume GetMasterVolume not working
I'm trying to mess with the audio API for a pet project of mine. I can't seem to get the volume for the sessions.
I managed to get the default endpoint calling GetDefaultAudioEndpoint on a device ...
-1
votes
0
answers
64
views
is there any native library available to get the cpu% of all the running process on windows system? [closed]
is there a native C/C++ library for retrieving CPU usage % for particular process and process names on Windows?
I am looking for a native C/C++ library that can be used on a Windows server to retrieve ...
0
votes
1
answer
86
views
Windows API own integer types max and min values
Being forced to program using windows I have approached a problem. Despite intensive googling I have not found max and min definition for windows inter types like WORD, DWORD.
Do they exist?
2
votes
1
answer
114
views
Is it possible to define a C++ function where one parameter is passed via the EAX register?
An old game doesn't work on my PC and I want to fix it. A function of the game might cause the problem. So I decided to hook this function with Detours. The following code is generated by IDA. ...
-2
votes
0
answers
69
views
How To Get Open Verb To Show In Windows 11 Context Menu [closed]
UPDATE:
The solution for getting Open and Open with... is to give Explorer a valid IQueryAssociations when it invokes IShellFolder::GetUIObjectOf. One can also provide a valid IQueryAssociations ...
0
votes
0
answers
20
views
Unable to programatically enable Audio Enhancements or set Audio DSP properties
I created a Visual Studio C++ console test project where I want to programatically set the voice capture DSP properties for the default microphone that I am using to record audio with. See https://...
1
vote
0
answers
89
views
Getting wrong CPU Processor ID with __cpuid() in Win 11 systems
I am facing an issue in getting CPU Processor ID with C++ code.
I used __cpuid() function as below:
#include <iostream>
#include <intrin.h>
int main()
{
unsigned __int32 regs[4];
...
0
votes
0
answers
30
views
Cannot open source file "crtdefs.h" in VSC (CUDA script), but CUDA compilation works
My CUDA script (.cu) can be compiled without error, but #include <stdio.h> line raises VSC's error:
#include errors detected. Please update your includePath. Squiggles are disabled for this ...
0
votes
0
answers
50
views
Unexpected rounded corners in Qt Frameless Widget
Unexpected rounded corners in Qt Frameless Widget
I use Qt and Windows API to create a window with a custom title bar, and I want this window to have some of the effects of a Windows window (maximize, ...
0
votes
0
answers
51
views
WinRT prompt for MddBootstrapInitialize2 function suggests that this application cannot be started
I want the window to have a frosted glass effect, so I use windowsAppSdk in my win32 program. but when running into this code:
#include <Windows.h>
#include <MddBootstrap.h>
#include <...
0
votes
0
answers
58
views
How to compile for Linux when on Windows using Code::Blocks?
I have a console app which I want to compile for Linux.
I don't have access to a Linux operating system at the moment, but I really do need to compile this program for as many operating systems as ...