3,911 questions with C++-related tags

Sort by: Updated
0 answers

How do we troubleshoot this msbuild error MSB6003?

We have a moderately large C++ codebase that builds with VS2017 (15.9.19 - I know, we're well behind on updates to VS). We are getting intermittent build failures with this error: error MSB6003: The specified task executable "CL.exe" could not…

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,911 questions
asked 2025-04-24T04:55:51.9533333+00:00
BYRNE Peter 0 Reputation points
commented 2025-04-24T09:15:46.3433333+00:00
David Lowndes 2,610 Reputation points MVP
2 answers

how to call a function called 'add' in ml64

How can I write assembler code that defines, uses and maybe exports a function called, say, add call out to a function called, say, add This is not a problem for masm32 as all functions are really called _func , ie _add But x64 calling convention…

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,911 questions
asked 2025-04-23T19:08:10.48+00:00
Paul Moore 1 Reputation point
answered 2025-04-24T07:47:14.5233333+00:00
Anton Demetri 0 Reputation points
0 answers

How to use windbg to analyze the allocation size and quantity of heap memory

I want to analyze the memory allocation details of heap32. How should I operate it? I tried "!heap-s", and then "!heap-h". However, the analyzed result confuses me. It shows very little memory

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,911 questions
asked 2025-04-23T04:06:39.8266667+00:00
y ly 20 Reputation points
edited the question 2025-04-24T01:52:08.08+00:00
y ly 20 Reputation points
0 answers

Why is the size of the client area for Tab Control received seem a little bit too large?

#include "framework.h" #include "Win32-Desktop-Tab-Overlay.h" #include <commctrl.h> #include <iostream> #pragma comment(lib, "comctl32.lib") #define ID_TABCTRL 100 #define MAX_LOADSTRING 100 HINSTANCE hInst; HWND…

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,911 questions
asked 2025-04-24T00:00:08.0266667+00:00
Cristoforo Montanari 0 Reputation points
1 answer

Server - Socket to receive XML messages

I'm looking for a good server in a dialog-based MFC application that will send me a request. Does anyone know a good example? The request comes from the client based on the event. The server sends the response or timeout within 20 seconds. Like…

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,911 questions
asked 2025-04-23T15:16:05.58+00:00
Noah Aas 945 Reputation points
edited a comment 2025-04-23T19:37:13.88+00:00
Noah Aas 945 Reputation points
1 answer

How to fix Win32 error 2731 on WinMain() function cannot be overloaded.

I am writing code for an x86 project in Studio 2022. The code comes from a book on game programming. Everytime I try to compile the program, I get the error message 2731 stating that the WinMain() function cannot be overloaded. My declaration is 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,911 questions
asked 2025-04-22T18:43:09.2933333+00:00
Gary Myers 0 Reputation points
answered 2025-04-23T01:52:03.2966667+00:00
Gary Myers 0 Reputation points
1 answer

Build DLL while debunning

I have searched around the web but did not find any discussions relating to this; I'm aware that Visual Studio has a Hotreload feature, however, that is not what I'm referring to here. Let's say I have Project A that builds a DLL and Project B that…

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,911 questions
asked 2025-04-23T01:16:47.5233333+00:00
Nalda Oudas 0 Reputation points
answered 2025-04-23T01:49:49.6733333+00:00
Nalda Oudas 0 Reputation points
4 answers One of the answers was accepted by the question author.

Create and name multiple dialogs

Windows 11, VS 2022, version 17.7.6 The goal is to create a project with multiple dialogs.  I found the process to create some dialogs, but the dialogs cannot be renamed and when the dialogs are closed within the VS windows I cannot reopen it. Here is my…

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,911 questions
asked 2024-07-27T04:03:54.8466667+00:00
Bryan Kelly 426 Reputation points
commented 2025-04-22T18:48:50.87+00:00
Bryan Kelly 426 Reputation points
0 answers

How to open COM port whit CreateFileA inside of a class method?

I am using winapi to create a serial connexion with an arduino, I used: HANDLE hSerial = CreateFileA("COM3", GENERIC_READ | GENERIC_WRITE, 0, 0, OPEN_EXISTING, FILE_ATTRIBUTE_NORMAL, 0); To open serial port and it returns a valid handle but…

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,911 questions
asked 2025-04-18T23:15:34.5466667+00:00
__joy__ 0 Reputation points
commented 2025-04-18T23:26:59.9233333+00:00
David Lowndes 2,610 Reputation points MVP
1 answer

How to set monitor scaling to recommended or desired scaling with c++ ?

I am trying to set scaling to windows recommended scaling or to desired one (100%,150%,...) for monitor in C++. I have monitor handles (type: HMONITOR). Is that enough or do I need anything else how would I set scaling from code.

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,756 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,911 questions
asked 2023-08-24T10:16:37.58+00:00
Jaka Kostanjevec 0 Reputation points
commented 2025-04-17T20:39:06.86+00:00
Apoorve Singhal 0 Reputation points
1 answer One of the answers was accepted by the question author.

How to get a notice when a up aroow key is pressed in C language

Hi, I like to move a picture on the screen by clicking up, down, right, left arrow on the key board. Is there a way to get a notice in my software when “up arrow key” in keyboard is pressed, as an example. I tried bres=IsInputKey(0); How do I find out…

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,756 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,911 questions
asked 2021-02-24T22:29:33.553+00:00
Chang Chi 61 Reputation points
accepted 2025-04-17T18:26:32.7366667+00:00
Chang Chi 61 Reputation points
0 answers

Why are system's MSVC runtime DLLs used instead of ours ones sometimes?

In order to decrease our app's installer size and do not force the user to download MSVC runtime redistributable installer, we include all the MSVC runtime DLLs we need (and only them) into our installer using the following technique. All was working…

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,911 questions
asked 2025-03-08T10:45:07.2466667+00:00
Alervd_000 5 Reputation points
commented 2025-04-17T08:50:08.4033333+00:00
Anonymous
0 answers

Future Support for int128 in MSVC and C++ Standard Roadmap

Hi , We currently rely on a custom implementation for 128-bit integer support in our cross-platform codebase, due to the absence of native int128/uint128 support in MSVC. Could you please confirm: Is there any plan or intent within Microsoft to support…

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,911 questions
asked 2025-04-17T05:49:59.5666667+00:00
Abhishek K 0 Reputation points
edited the question 2025-04-17T05:50:31.4333333+00:00
Abhishek K 0 Reputation points
1 answer One of the answers was accepted by the question author.

Is there Documentation on ICompositor?

I can't find any documentation on the ICompositor interace, anywhere. Are there docs out there?

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,911 questions
asked 2025-04-13T23:25:06.9633333+00:00
CDev-8220 300 Reputation points
commented 2025-04-15T18:16:11.3833333+00:00
Darran Rowe 1,541 Reputation points
3 answers

How do do I disable suggestions in Visual Studio C++?

Any way to disable suggestions only in Visual Studio 2017? I'm talking about cpp Suggested Action Format suggestions specifically. Thank you.

Visual Studio
Visual Studio
A family of Microsoft suites of integrated development tools for building applications for Windows, the web and mobile devices.
5,449 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,911 questions
asked 2021-01-10T18:33:25.373+00:00
KeyC0de 31 Reputation points
answered 2025-04-14T19:46:25.5033333+00:00
Abdo Shady 0 Reputation points
2 answers

how to solve the microsoft c++ "minimum runtime" problem

Whenever I try to install the most up-to-date Microsoft C++, the installer encounters a problem, the message "the feature you are trying to use is on a network resource that is unavailable" appears.

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,911 questions
asked 2025-04-14T01:24:13.1133333+00:00
Matheus Mutti 0 Reputation points
answered 2025-04-14T06:24:19.93+00:00
Castorix31 88,381 Reputation points
0 answers

Media Foundation Always Uses Intel iGPU when it's disabled in Device manager and in BIOS (mux)

When using the MF in this config: CHECK_HR(MFCreateAttributes(&pAttributes, 1)); CHECK_HR(pAttributes->SetUINT32(MF_LOW_LATENCY, TRUE)); CHECK_HR(pAttributes->SetUINT32(MF_READWRITE_ENABLE_HARDWARE_TRANSFORMS, TRUE)); …

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,911 questions
asked 2025-04-12T20:08:14.6166667+00:00
maj soklič 0 Reputation points
3 answers

Morse Code Translator

For an assignment, I'm unable to use the strings. Only c-style strings. Any help in solving this problem would be highly appreciated. Source: Online Morse Code Translator a5.cpp:45:10: error: invalid operands to binary expression ('char [1]' and…

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,911 questions
asked 2022-01-06T10:28:22.553+00:00
Ben Jorden 6 Reputation points
edited a comment 2025-04-10T15:47:22.6033333+00:00
Bruce (SqlWork.com) 74,696 Reputation points
1 answer

Visual c++ Version Vulnerability and How to Check EOL

I want to check the vulnerability and EOL for VISUAL C++ version.  Please check how to check CVE&CVSS(vulnerability) and EOL. EX)   Thanks for your help.

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,911 questions
asked 2025-04-08T06:15:16.07+00:00
sumin lee 0 Reputation points
commented 2025-04-09T05:21:29.9333333+00:00
sumin lee 0 Reputation points
0 answers

How to Retrieve FORM_INFO_2 Structs for a Specific Printer Using Win32 API?

The documentation for EnumForms indicates that it enumerates each of the forms supported by a printer, but this appears to be misleading since it returns all forms registered on the system. Regardless of the printer used in the EnumForms call, a fixed…

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,911 questions
asked 2025-04-04T12:12:08.4833333+00:00
jimorcheson 0 Reputation points
commented 2025-04-08T06:17:09.46+00:00
Minxin Yu 13,501 Reputation points Microsoft External Staff