4,066 questions with Developer technologies | C++ tags

Sort by: Updated
3 answers

Static initialization of thread_local variable with heap-allocating constructor crashes program

I noticed that the following static variable in my C++ code caused my program to stop working (crash / exception at startup): static thread_local std::unordered_map<std::string, int> myMap; Debugging the issue, an exception was raised while the…

Developer technologies | C++
Developer technologies | 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.

4,066 questions
asked 2026-05-29T09:08:43.94+00:00
Marco Fischer 0 Reputation points
commented 2026-06-04T16:04:25.33+00:00
Darran Rowe 2,616 Reputation points
2 answers

Rich edit control that displays emojis with color.

Please only answer if you are in Microsoft since part of this question regards right to distribute a DLL. This regards a C/C++program I wrote. I created a rich edit control using CreateWindowEx and subclassed the edit control. I used msftedit.dll. I…

Developer technologies | C++
Developer technologies | 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.

4,066 questions
asked 2026-06-04T05:08:28.99+00:00
technoway 241 Reputation points
commented 2026-06-04T07:31:35.4033333+00:00
Castorix31 91,876 Reputation points
1 answer

Latest Supported Visual C++ redistributable download appears to be the wrong version

I just download the latest supported x64 VC++ redistributable from Latest supported redistributable version and upon examining the properties it appears that instead of the redistributable for 2017-2026 the downloaded file was for 2015-2022. Same issue…

Developer technologies | C++
Developer technologies | 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.

4,066 questions
asked 2026-06-02T09:07:21.5933333+00:00
RLWA32 52,571 Reputation points
commented 2026-06-03T12:42:59.3066667+00:00
RLWA32 52,571 Reputation points
3 answers

C++ Vectors

In C++ why am I getting an error on this statement? CHMID1[I] = PT1[I] + (CHORD1 * VEC1[I]) / 2.; CHMID1[I] a float vector PT1[I] a float vector CHORD1 a float variable VEC1[I] a float vector system says = not a valid operator???

Developer technologies | C++
Developer technologies | 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.

4,066 questions
asked 2026-05-26T20:32:32.23+00:00
Sid Kraft 46 Reputation points
commented 2026-06-03T07:00:01.5266667+00:00
Jack Dang (WICLOUD CORPORATION) 18,800 Reputation points Microsoft External Staff Moderator
2 answers

equal operator C++

have a C++ program, trying to assign a vector variable to a complex equation: chm[i] = vec1[i] + (float cmid * vec2[i])/2.; i from 1 to 3 compiler generates an error that says "cannot find = operator to assign value define…

Developer technologies | C++
Developer technologies | 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.

4,066 questions
asked 2026-05-25T13:48:26.4533333+00:00
Sid Kraft 46 Reputation points
commented 2026-06-02T09:37:27.75+00:00
Taki Ly (WICLOUD CORPORATION) 1,745 Reputation points Microsoft External Staff Moderator
2 answers

C++ errors

Using Visual Studio, C++, is there a way to turn off the error reporting that is generated by "co-pilot", very irritating as every statement that is issued automatically generates suggested error or fixes while entering! "clutters up"…

Developer technologies | C++
Developer technologies | 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.

4,066 questions
asked 2026-05-25T13:59:32.98+00:00
Sid Kraft 46 Reputation points
commented 2026-06-02T07:21:50.49+00:00
Jack Dang (WICLOUD CORPORATION) 18,800 Reputation points Microsoft External Staff Moderator
2 answers

Questions regarding Windows driver signing

Hello Microsoft Support, We are in the early planning phase for a new Windows driver and want to make sure we understand the official release process for Windows Endpoints and Servers. Could you please clarify a few basic points for us? Certificates:…

Developer technologies | C++
Developer technologies | 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.

4,066 questions
asked 2026-05-21T12:31:37.2966667+00:00
Nikhil Raj 0 Reputation points
commented 2026-06-01T09:37:52.3266667+00:00
Taki Ly (WICLOUD CORPORATION) 1,745 Reputation points Microsoft External Staff Moderator
2 answers

C++ Vectors

This is maddening, went to great lengths to make sure that the statements on either side of the = operator of the same type, still get a compiler error I = 0; do { float CH1 = PT1[I]; float CH2 = PT2[I]; float CH3 = PT3[I]; float…

Developer technologies | C++
Developer technologies | 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.

4,066 questions
asked 2026-05-26T21:02:14.4333333+00:00
Sid Kraft 46 Reputation points
commented 2026-06-01T04:48:24.69+00:00
Nancy Vo (WICLOUD CORPORATION) 4,845 Reputation points Microsoft External Staff Moderator
1 answer

Trying to download Microsoft visual C++ and not having Additional runtime

I have tried uninstalling it and everything that people say to do and every time I go to install Microsoft Visual C++ 2022 64x it says that the feature you are are trying to use is unavailable and its trying to find a folder with…

Developer technologies | C++
Developer technologies | 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.

4,066 questions
asked 2026-05-19T16:15:02.95+00:00
Buddy Walden 5 Reputation points
commented 2026-05-27T04:30:38.08+00:00
Taki Ly (WICLOUD CORPORATION) 1,745 Reputation points Microsoft External Staff Moderator
2 answers

C++ Cross Product Function

Have the function below in Visual Studio, C++. The function does a cross product for a vector VEC1,Vec2,Vec3. When I call the function as "crossproductVector(Vec1,Vec2,Vec3)" the value returned for Vec3 has zero components even though the…

Developer technologies | C++
Developer technologies | 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.

4,066 questions
asked 2026-05-16T17:03:17.89+00:00
Sid Kraft 46 Reputation points
commented 2026-05-25T08:57:57.34+00:00
Danny Nguyen (WICLOUD CORPORATION) 6,945 Reputation points Microsoft External Staff Moderator
3 answers

C++ Function Return With Reference

Have a function that I call with the variable references below. Was told that when I call, can change the values back to the original call if the variables are "reference" &A, &B. However, the system does not allow one to do, I.E. as…

Developer technologies | C++
Developer technologies | 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.

4,066 questions
asked 2026-05-16T18:06:33.61+00:00
Sid Kraft 46 Reputation points
commented 2026-05-25T07:12:27.4933333+00:00
Jack Dang (WICLOUD CORPORATION) 18,800 Reputation points Microsoft External Staff Moderator
2 answers

C++ Argument Return

Have a function in C++ with three input arguments. When I call the function with three arguments, I return the 3 argument values in the function but it does not return into the original arguments used in the function call sequence. Example: float…

Developer technologies | C++
Developer technologies | 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.

4,066 questions
asked 2026-05-14T00:19:34.9433333+00:00
Sid Kraft 46 Reputation points
commented 2026-05-21T09:14:11.1466667+00:00
Jack Dang (WICLOUD CORPORATION) 18,800 Reputation points Microsoft External Staff Moderator
0 answers

How to dock a CDockablePane to another floating CDockablePane in MFC?

Hi, I'm working on an MFC application using the MFC App Wizard (VS-generated template with docking panes), and I'm trying to float the Class View pane and then dock the File View pane into that floating Class View pane. Here's what I currently have…

Developer technologies | C++
Developer technologies | 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.

4,066 questions
asked 2025-06-02T08:19:06.3133333+00:00
petyer 0 Reputation points
edited a comment 2026-05-20T09:33:47.5933333+00:00
Thomas Wagner 5 Reputation points
2 answers One of the answers was accepted by the question author.

Error: -1073741813 [ C0000005 - access violation exception ], when running a custom C++ application

Hi Microsoft team, I am new to C++ and have never experienced this issue before, I am following the Sektor 7 courses, and whilst trying to accomplish one of the coding tasks, I have come across this issue - Error: -1073741813, If it helps - the…

Developer technologies | Visual Studio | Debugging
Windows for business | Windows Client for IT Pros | User experience | Other
Developer technologies | C++
Developer technologies | 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.

4,066 questions
Developer technologies | Visual Studio | Other
Developer technologies | Visual Studio | Other

A family of Microsoft suites of integrated development tools for building applications for Windows, the web, mobile devices and many other platforms. Miscellaneous topics that do not fit into specific categories.

5,764 questions
asked 2023-07-13T08:46:12.2666667+00:00
Joseph RW 105 Reputation points
edited a comment 2026-05-19T20:39:23.7133333+00:00
abaha james 0 Reputation points
3 answers

how to download c++ 2019

how to download c++ 2019 in this page;how to download c++ 2019 in this page;how to download c++ 2019 in this page

Developer technologies | C++
Developer technologies | 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.

4,066 questions
asked 2026-05-09T07:35:41.5833333+00:00
wenlei ji 0 Reputation points
commented 2026-05-18T09:33:17.28+00:00
Taki Ly (WICLOUD CORPORATION) 1,745 Reputation points Microsoft External Staff Moderator
2 answers

Error with compiler

PS C:\Users\Prabh\OneDrive\Documents\Prabhjoat University\programming\Microsoft C++ Course> cd "c:\Users\Prabh\OneDrive\Documents\Prabhjoat University\programming\Microsoft C++ Course" ; if ($?) { g++ hello_world.cpp -o hello_world } ; if…

Developer technologies | C++
Developer technologies | 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.

4,066 questions
asked 2026-05-04T17:12:47.3233333+00:00
Prabhjoat Riyat 0 Reputation points
commented 2026-05-12T10:33:31.5533333+00:00
Taki Ly (WICLOUD CORPORATION) 1,745 Reputation points Microsoft External Staff Moderator
3 answers

Screen recording from a Windows service which is running under local system account

We are building a Windows monitoring/recording solution and want to validate the service/session architecture for screen capture. Design: A Windows service runs in Session 0 and handles control/orchestration. For each recording session, the service…

Developer technologies | C++
Developer technologies | 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.

4,066 questions
asked 2026-04-29T11:22:44.3433333+00:00
Prayerlin Rex 0 Reputation points
commented 2026-05-08T05:08:11.2733333+00:00
Varsha Dundigalla(INFOSYS LIMITED) 5,025 Reputation points Microsoft External Staff
2 answers

Totally and Absolutely Confused

Created a C++ project using Visual Studio 2026. Opened the file, made changes, saved all, built a project, executed, worked fine. closed Visual Studio, opened again, opened the project, changes that I made still there. Closed Visual Studio, turned off…

Developer technologies | C++
Developer technologies | 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.

4,066 questions
asked 2026-04-23T21:52:33.54+00:00
Sid Kraft 46 Reputation points
edited a comment 2026-05-04T07:34:18.9966667+00:00
Leon Tran (WICLOUD CORPORATION) 1,910 Reputation points Microsoft External Staff Moderator
3 answers

Visual Studio Save

Have A C++ program in Visual Studio, making changes and when finish, issue a "save all" command which should save all of the changes, I would think. I then issue a "re build" and issue the "save all" command again. However,…

Developer technologies | C++
Developer technologies | 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.

4,066 questions
asked 2026-04-23T16:28:49.8033333+00:00
Sid Kraft 46 Reputation points
commented 2026-05-01T06:51:42.38+00:00
Leon Tran (WICLOUD CORPORATION) 1,910 Reputation points Microsoft External Staff Moderator
2 answers One of the answers was accepted by the question author.

How to use CoInitializeSecurity by using pointer to AppID in pSecDesc parameter?

One of the microsoft recommendation is not to use nullptr for first parameter of CoInitializeSecurity. So how can I use CoInitializeSecurity by using pointer to AppID in first parameter (pSecDesc)?. Appreciate your help in this.

Developer technologies | C++
Developer technologies | 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.

4,066 questions
asked 2026-04-22T13:43:55.27+00:00
Sivalingam Somasundaram 20 Reputation points
commented 2026-04-28T10:05:51.9333333+00:00
Taki Ly (WICLOUD CORPORATION) 1,745 Reputation points Microsoft External Staff Moderator