How to disable auto warning focus in Visual Studio 2022 C++
How can I disable this? When I press build, visual studio is focuses on the first warning / error. It is really annoying. Thanks, Fabo
Disable pause after execution 2
What happened to the first post where I asked this question? Why are there still these puzzle verifications when posting? -- It's been asked for years, and I was wondering if something has finally been done about it. I'd like after an execution of a c++…
When Setting a Breakpoint in C Code "Break Mode" Pops Up
Running 17.12.3 (same problem with later versions) on my desktop under Win10 Pro (fully updated), when I set a breakpoint in my code (via the editor), "The Application is in Break Mode" pops up. In the past, the editor would show execution…
Why do I have problems when trying to import a header unit?
I used VS Developer PowerShell to create a header unit file from a header file. cl /std:c++20 /exportHeader /headerName:quote HeadersBase.h Not sure if that was the right thing to do. Then I created an empty project to see if I can import the header unit…
SetSystemCursor not honoring cursor size
I'm currently trying to set the system cursor to loading cursor while I'm processing certain information on my software then restoring the default cursor. But I'm facing an issue when my computer accessibility configuration has the size of mouse computer…
After VS2022 version 17.12.0 update Address Sanitizer no longer works for my C++ project
I've just updated visual studio to the version in the topic and the project which worked ok 5 minutes ago with Asan on (/fsanitize=address) now throws this error when starting the debugger: The procedure entry point __sanitizer_ignore_free_hook____dll…
Visual Studio 2022 "Cannot open source file" Problem
Hi, I have a problem , when i installed Visual Studio 2022 community i selected only this in installation detail C++ ATL and Windows 10 DSK (10.0.2348.0) and intellicode . when i run code , it appears "can't open source file "iostream"…
How to edit .rc file
Which edit IDE is recommend for .rc file https://github.com/chromiumembedded/cef ... /shared.rc Simple edits can be done by hand (it’s a text file), or use Visual Studio for more complex edits like defining dialogs, etc. See…
How to find the Disk partition style using IOCTL?
I am trying to find the disk partition style using IOCTL. Earlier, I was using WMI, but in this particular code, I need to provide the physical drive path. What should be given as input, and how can I find or determine which physical drive path to…
Solution build compiled without error but no .sys file created
I am currently working on a file system mini-filter driver in Windows. I've set up my development environment with the following: Development Tools: Visual Studio (latest version) Windows Driver Kit (WDK) Windows SDK Setup Details: I configured the…
how to get firmware type of windows?
I tried the below method, but it seems vague. if (EnablePrivilege(SE_SYSTEM_ENVIRONMENT_PRIVILEGE) != ERROR_SUCCESS) { return 0; //(unknown) } BYTE buffer[1]; DWORD result = GetFirmwareEnvironmentVariableW(SECURE_BOOT, EFI_GUID, buffer,…
[C++] [VS 2022] How to ignore warnings from external libraries
Hello, I have a C++ project and I would like to treat my warnings as errors (/W4 /WX). My project has various dependencies on various libraries (using vcpkg), and for some reason warnings from their headers are shown during compilations. …
[Beginner] Multithreading C++ Socket
In C++ (well I think in every programming language) what is better to do when dealing with multithreading socket? Cap the number of threads it can execute the requests so that you always have 1/2 thread available for accepting new connections? In this…
Changes in floating point calculation since Windows 24H2
Hello, Since last windows 11 update (24H2), we observe slight differences between our continuous integration (WinServer 2022 21H2) and our develpers computers regarding some of our double precision calculation. We checked iteratively versions of…
OpenEventLog returns RPC_S_SERVER_UNAVAILABLE on Windows 24H2
We have a tool that parse data from the eventlog. However this has stopped working to access remote servers when run Windows 24H2 machines, with either of the following errors: RPC_S_SERVER_UNAVAILABLE RPC_X_BAD_STUB_DATA The following application…
How to show mandatory arguments in bold in Excel Insert Function Dialog for C++ custom function ?
For example, standard Excel function IF will show 3 arguments in Function Dialog Box: Logical_test in bold, Value_if_true in normal font, Value_if_false in normal font. If we use custom function written in C++ and registered with…
Windows 11 22H2 has a different way of using the JS engine?
Dear support, Our company has a solution built on a WebBrowser that will use the JS engine. After upgrading to Windows 11 22H2, we found that the solution behaves differently from before. We did some research, and then found that Windows 11 22H2 has…
How to execute in parallel C++ tests written with the Microsoft Unit Testing Framework ?
We are writing C++ tests with the help of Microsoft Unit Testing Framework (https://learn.microsoft.com/en-us/visualstudio/test/how-to-use-microsoft-test-framework-for-cpp?view=vs-2022#run-the-tests) Tests are running fine, it works within Visual…
How to fix LNK1181 error (including libs)
Severity Code Description Project File Line Suppression State Details Error LNK1181 cannot open input file 'C:\6money\libs.obj' Dll1 C:\6money\Money\Dll1\LINK 1 Hello, I'm currently facing an issue when trying to link the lua54.lib library in my…
why GATTSetCharacteristicValue return 80070005 on windows8.1
when i use GATTSetCharacteristicValue Send data to ble device (on windows 8.1), but it return hr=80070005. it will return ok the program on windows10 or over. anybody have this problem.