3,834 questions with C++-related tags

Sort by: Updated
0 answers

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

Visual Studio
Visual Studio
A family of Microsoft suites of integrated development tools for building applications for Windows, the web and mobile devices.
5,372 questions
C++
C++
A high-level, general-purpose programming language, created as an extension of the C programming language, that has object-oriented, generic, and functional features in addition to facilities for low-level memory manipulation.
3,834 questions
asked 2025-01-24T10:22:36.2333333+00:00
Zsolt Fabian 0 Reputation points
2 answers One of the answers was accepted by the question author.

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++…

Visual Studio
Visual Studio
A family of Microsoft suites of integrated development tools for building applications for Windows, the web and mobile devices.
5,372 questions
C++
C++
A high-level, general-purpose programming language, created as an extension of the C programming language, that has object-oriented, generic, and functional features in addition to facilities for low-level memory manipulation.
3,834 questions
asked 2025-01-09T19:09:28.4033333+00:00
z l 20 Reputation points
edited the question 2025-01-24T01:35:36.39+00:00
Jack J Jun 24,631 Reputation points Microsoft Vendor
1 answer One of the answers was accepted by the question author.

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…

Visual Studio
Visual Studio
A family of Microsoft suites of integrated development tools for building applications for Windows, the web and mobile devices.
5,372 questions
C++
C++
A high-level, general-purpose programming language, created as an extension of the C programming language, that has object-oriented, generic, and functional features in addition to facilities for low-level memory manipulation.
3,834 questions
asked 2025-01-12T16:40:36.83+00:00
Bob Smith 20 Reputation points
edited the question 2025-01-24T01:35:08.7133333+00:00
Jack J Jun 24,631 Reputation points Microsoft Vendor
0 answers

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…

Windows
Windows
A family of Microsoft operating systems that run across personal computers, tablets, laptops, phones, internet of things devices, self-contained mixed reality headsets, large collaboration screens, and other devices.
5,734 questions
C++
C++
A high-level, general-purpose programming language, created as an extension of the C programming language, that has object-oriented, generic, and functional features in addition to facilities for low-level memory manipulation.
3,834 questions
asked 2024-12-30T21:49:19.45+00:00
CDev-8220 220 Reputation points
edited a comment 2025-01-23T23:59:27.63+00:00
Darran Rowe 1,341 Reputation points
1 answer

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…

Windows API - Win32
Windows API - Win32
A core set of Windows application programming interfaces (APIs) for desktop and server applications. Previously known as Win32 API.
2,715 questions
C++
C++
A high-level, general-purpose programming language, created as an extension of the C programming language, that has object-oriented, generic, and functional features in addition to facilities for low-level memory manipulation.
3,834 questions
asked 2025-01-23T20:07:56.85+00:00
Julian Castillo 0 Reputation points
answered 2025-01-23T22:32:01.51+00:00
RLWA32 46,476 Reputation points
0 answers

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
Visual Studio
A family of Microsoft suites of integrated development tools for building applications for Windows, the web and mobile devices.
5,372 questions
C++
C++
A high-level, general-purpose programming language, created as an extension of the C programming language, that has object-oriented, generic, and functional features in addition to facilities for low-level memory manipulation.
3,834 questions
asked 2024-11-13T12:56:41.03+00:00
Andrei Hanganu 0 Reputation points
commented 2025-01-23T18:13:51.0233333+00:00
Nicholas Anthony 0 Reputation points
1 answer One of the answers was accepted by the question author.

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"…

Visual Studio
Visual Studio
A family of Microsoft suites of integrated development tools for building applications for Windows, the web and mobile devices.
5,372 questions
C++
C++
A high-level, general-purpose programming language, created as an extension of the C programming language, that has object-oriented, generic, and functional features in addition to facilities for low-level memory manipulation.
3,834 questions
asked 2025-01-23T10:05:55.2466667+00:00
Mohamed El-sherif 20 Reputation points
edited the question 2025-01-23T16:44:09.58+00:00
Mohamed El-sherif 20 Reputation points
2 answers One of the answers was accepted by the question author.

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…

Visual Studio
Visual Studio
A family of Microsoft suites of integrated development tools for building applications for Windows, the web and mobile devices.
5,372 questions
C++
C++
A high-level, general-purpose programming language, created as an extension of the C programming language, that has object-oriented, generic, and functional features in addition to facilities for low-level memory manipulation.
3,834 questions
asked 2025-01-08T03:23:05.77+00:00
alice alice 100 Reputation points
accepted 2025-01-23T00:27:04.83+00:00
alice alice 100 Reputation points
1 answer

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…

C++
C++
A high-level, general-purpose programming language, created as an extension of the C programming language, that has object-oriented, generic, and functional features in addition to facilities for low-level memory manipulation.
3,834 questions
asked 2025-01-16T07:18:06.24+00:00
Gopika Lakshmi 10 Reputation points
commented 2025-01-22T10:37:15.48+00:00
RLWA32 46,476 Reputation points
0 answers

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…

C++
C++
A high-level, general-purpose programming language, created as an extension of the C programming language, that has object-oriented, generic, and functional features in addition to facilities for low-level memory manipulation.
3,834 questions
Windows 11
Windows 11
A Microsoft operating system designed for productivity, creativity, and ease of use.
10,504 questions
Windows Driver Kit (WDK)
Windows Driver Kit (WDK)
A set of Microsoft tools that are used to develop, test, and deploy Windows drivers.
151 questions
asked 2025-01-18T18:18:26.8033333+00:00
Beast 0 Reputation points
edited the question 2025-01-22T06:34:05.32+00:00
Minxin Yu 12,506 Reputation points Microsoft Vendor
1 answer

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++
C++
A high-level, general-purpose programming language, created as an extension of the C programming language, that has object-oriented, generic, and functional features in addition to facilities for low-level memory manipulation.
3,834 questions
asked 2025-01-16T07:06:30.9433333+00:00
Gopika Lakshmi 10 Reputation points
commented 2025-01-21T13:52:48.87+00:00
RLWA32 46,476 Reputation points
1 answer One of the answers was accepted by the question author.

[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. …

Visual Studio
Visual Studio
A family of Microsoft suites of integrated development tools for building applications for Windows, the web and mobile devices.
5,372 questions
C++
C++
A high-level, general-purpose programming language, created as an extension of the C programming language, that has object-oriented, generic, and functional features in addition to facilities for low-level memory manipulation.
3,834 questions
asked 2022-11-14T17:55:26.163+00:00
Darky 31 Reputation points
commented 2025-01-21T11:38:00.2533333+00:00
Darran Rowe 1,341 Reputation points
2 answers One of the answers was accepted by the question author.

[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…

C++
C++
A high-level, general-purpose programming language, created as an extension of the C programming language, that has object-oriented, generic, and functional features in addition to facilities for low-level memory manipulation.
3,834 questions
asked 2025-01-14T17:52:25.7733333+00:00
sValentin 81 Reputation points
accepted 2025-01-21T05:54:31.8366667+00:00
sValentin 81 Reputation points
1 answer

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…

C++
C++
A high-level, general-purpose programming language, created as an extension of the C programming language, that has object-oriented, generic, and functional features in addition to facilities for low-level memory manipulation.
3,834 questions
Windows 11
Windows 11
A Microsoft operating system designed for productivity, creativity, and ease of use.
10,504 questions
asked 2025-01-03T13:22:21.1066667+00:00
Timothé VAN DEPUTTE 25 Reputation points
commented 2025-01-20T18:55:40.9166667+00:00
Darran Rowe 1,341 Reputation points
0 answers

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…

Windows API - Win32
Windows API - Win32
A core set of Windows application programming interfaces (APIs) for desktop and server applications. Previously known as Win32 API.
2,715 questions
C++
C++
A high-level, general-purpose programming language, created as an extension of the C programming language, that has object-oriented, generic, and functional features in addition to facilities for low-level memory manipulation.
3,834 questions
Windows 11
Windows 11
A Microsoft operating system designed for productivity, creativity, and ease of use.
10,504 questions
asked 2024-11-13T12:07:58.58+00:00
Ljungberg, Ted 5 Reputation points
commented 2025-01-20T15:30:48.2466667+00:00
Kevin Stanush 0 Reputation points
0 answers

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…

Excel
Excel
A family of Microsoft spreadsheet software with tools for analyzing, charting, and communicating data.
2,101 questions
C++
C++
A high-level, general-purpose programming language, created as an extension of the C programming language, that has object-oriented, generic, and functional features in addition to facilities for low-level memory manipulation.
3,834 questions
asked 2025-01-19T18:20:34.1233333+00:00
Julia Sotnikova 0 Reputation points
1 answer

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…

C#
C#
An object-oriented and type-safe programming language that has its roots in the C family of languages and includes support for component-oriented programming.
11,230 questions
C++
C++
A high-level, general-purpose programming language, created as an extension of the C programming language, that has object-oriented, generic, and functional features in addition to facilities for low-level memory manipulation.
3,834 questions
Windows 11
Windows 11
A Microsoft operating system designed for productivity, creativity, and ease of use.
10,504 questions
asked 2022-11-02T01:24:42.513+00:00
Julie Jiang 6 Reputation points
commented 2025-01-19T03:51:44.0966667+00:00
Philippe Majerus 0 Reputation points
2 answers One of the answers was accepted by the question author.

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…

Visual Studio
Visual Studio
A family of Microsoft suites of integrated development tools for building applications for Windows, the web and mobile devices.
5,372 questions
C++
C++
A high-level, general-purpose programming language, created as an extension of the C programming language, that has object-oriented, generic, and functional features in addition to facilities for low-level memory manipulation.
3,834 questions
Visual Studio Testing
Visual Studio Testing
Visual Studio: A family of Microsoft suites of integrated development tools for building applications for Windows, the web and mobile devices.Testing: The act or process of applying tests as a means of analysis or diagnosis.
353 questions
asked 2025-01-15T10:58:01.3766667+00:00
Julianis 20 Reputation points
accepted 2025-01-17T08:05:23.63+00:00
Julianis 20 Reputation points
0 answers

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…

Visual Studio
Visual Studio
A family of Microsoft suites of integrated development tools for building applications for Windows, the web and mobile devices.
5,372 questions
C++
C++
A high-level, general-purpose programming language, created as an extension of the C programming language, that has object-oriented, generic, and functional features in addition to facilities for low-level memory manipulation.
3,834 questions
Visual Studio Debugging
Visual Studio Debugging
Visual Studio: A family of Microsoft suites of integrated development tools for building applications for Windows, the web and mobile devices.Debugging: The act or process of detecting, locating, and correcting logical or syntactical errors in a program or malfunctions in hardware. In hardware contexts, the term troubleshoot is the term more frequently used, especially if the problem is major.
1,019 questions
Visual Studio Testing
Visual Studio Testing
Visual Studio: A family of Microsoft suites of integrated development tools for building applications for Windows, the web and mobile devices.Testing: The act or process of applying tests as a means of analysis or diagnosis.
353 questions
asked 2025-01-15T17:57:11.9633333+00:00
Yuri 0 Reputation points
commented 2025-01-17T07:12:29.2533333+00:00
Minxin Yu 12,506 Reputation points Microsoft Vendor
0 answers

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.

Windows App SDK
Windows App SDK
A set of Microsoft open-source libraries, frameworks, components, and tools to be used in apps to access Windows platform functionality on many versions of Windows. Previously known as Project Reunion.
814 questions
C++
C++
A high-level, general-purpose programming language, created as an extension of the C programming language, that has object-oriented, generic, and functional features in addition to facilities for low-level memory manipulation.
3,834 questions
asked 2025-01-16T07:07:16.66+00:00
Agilemin 0 Reputation points
commented 2025-01-17T02:09:08.3466667+00:00
Jeanine Zhang-MSFT 10,436 Reputation points Microsoft Vendor