3,920 questions with C++-related tags

Sort by: Updated
0 answers

How to get specific error code with MSXML SAX validator

When I use MSXML DOM model for validating a XML file against a schema, I get validation error "0xc00ce014" for XML structural issues. Now, we need to use MSXML SAX model for validating XML file as its very big. Using this model we always get…

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,920 questions
asked 2025-05-04T09:58:09.22+00:00
0 answers

I have Qt6gui.dll file in my folder, but vs bias to search for the .pdb file, I don't have this file and I can't find it

I added qt's bin directory something was wrong but i can't fix ); Thanks for ur 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,920 questions
asked 2025-05-03T09:47:34.5366667+00:00
ZHAO dream 0 Reputation points
edited the question 2025-05-03T09:48:04.3333333+00:00
ZHAO dream 0 Reputation points
1 answer

How do I move the Windows software development kit to a D drive?

Hi friends! How do I move the Windows software development kit to a D drive?I need it

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,920 questions
asked 2025-05-03T00:53:54.1466667+00:00
ZHAO dream 0 Reputation points
answered 2025-05-03T01:18:33.07+00:00
S.Sengupta 23,081 Reputation points MVP
1 answer One of the answers was accepted by the question author.

how to use class variable in class ?

I want to use variable in class class Path{ public: float get_x(){ int x=0; for(int i=0;i<ARRAYSIZE(Paths);i++){ if(Paths[i].r){ return Paths[i].id; } } } } Path Paths[30]; but there will be error right? I can not use Paths in class

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,920 questions
asked 2025-05-02T11:44:30.7833333+00:00
mc 5,266 Reputation points
accepted 2025-05-02T23:41:21.8766667+00:00
mc 5,266 Reputation points
2 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,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,920 questions
asked 2024-11-13T12:56:41.03+00:00
Andrei Hanganu 5 Reputation points
commented 2025-05-02T05:43:56.64+00:00
Peter Vermilye 0 Reputation points
0 answers

Server - Socket to receive XML messages, dialog problem

Hello, I get into the receiving routine. But pThis is NULL and UpdateReceiveEdit causes an exception. What can the solution look like and what 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,920 questions
asked 2025-04-24T16:17:55.42+00:00
Noah Aas 985 Reputation points
commented 2025-04-30T17:38:03.8633333+00:00
Noah Aas 985 Reputation points
0 answers

Dont Show Photo In DataGridViewImageColumn in Visual Studio C++

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,920 questions
asked 2025-04-29T01:41:01.63+00:00
Abdelrhman Ibrahim 0 Reputation points
commented 2025-04-30T14:38:52.6366667+00:00
Castorix31 88,871 Reputation points
0 answers

Windows SDK 10.0.26100 causes compilation error in wchar.h with MSVC 2015 compiler

I'm trying to build a legacy product that used MSVC 2015 Update 3 (compiler version 19.00.24215.1). Since Windows SDK 10.0.26100 was installed on the machine the build fails with the following…

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,920 questions
asked 2025-04-29T13:21:21.06+00:00
MikeB 1 Reputation point
commented 2025-04-29T14:24:00.9533333+00:00
David Lowndes 2,615 Reputation points MVP
0 answers

VST Host Help!!

Hello....well...im not a coder just an enthusiast...but...im trying to make a simple VST host and i have this code but im not able to run it very well...can someone help me fix my code? Thanks!! #include "aeffect.h" #include…

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,920 questions
asked 2025-04-29T11:23:42.47+00:00
Duarte Vinagre 60 Reputation points
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,920 questions
asked 2025-04-23T19:08:10.48+00:00
Paul Moore 1 Reputation point
edited a comment 2025-04-28T00:53:15.1166667+00:00
Paul Moore 1 Reputation point
1 answer One of the answers was accepted by the question author.

What option makes end curly brackets to be added automatically in Visual Studio?

I do not know what I did, but now the end curly bracket is not automatically added when I type de start curly bracket

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,920 questions
asked 2025-04-27T13:20:30.1633333+00:00
LUIS HERNANDEZ YAÑEZ 20 Reputation points
commented 2025-04-27T16:24:28.1333333+00:00
LUIS HERNANDEZ YAÑEZ 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,920 questions
asked 2025-04-24T00:00:08.0266667+00:00
Cristoforo Montanari 0 Reputation points
edited the question 2025-04-24T17:55:44.8966667+00:00
Cristoforo Montanari 0 Reputation points
1 answer One of the answers was accepted by the question author.

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,920 questions
asked 2025-04-23T15:16:05.58+00:00
Noah Aas 985 Reputation points
accepted 2025-04-24T16:19:07.06+00:00
Noah Aas 985 Reputation points
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,920 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,615 Reputation points MVP
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,920 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
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,920 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,920 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,920 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,920 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,615 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,761 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,920 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