3,537 questions with C++-related tags

Sort by: Updated
1 answer One of the answers was accepted by the question author.

Some WMI calls to UWF return access denied error

Hello, I am currently working on a C++ application which uses the integrated write filter(UWF) of Windows 10 IoT. I am using Windows 10 IoT Enterprise LTSC 1809 Build 17763.107 Now I face the following problem: Some WMI calls return with a…

Windows for IoT
Windows for IoT
A family of Microsoft operating systems designed for use in Internet of Things (IoT) devices.
381 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,537 questions
asked 2020-08-24T13:37:24.923+00:00
David S 21 Reputation points
commented 2020-08-25T15:48:14.193+00:00
Sean Liming 4,511 Reputation points
1 answer

Visual Studio 2019 C++, how to know which return statement (out of multiple return statements in current function) exited the current function

I'm debugging a C++ function in Visual Studio 2019 and there are multiple return statements in it. I want to know which return statement exited the current function. Right now I'm adding breakpoints to all the return statements and continuing 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,537 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.
945 questions
asked 2020-08-23T20:56:50.307+00:00
pasha 1 Reputation point
commented 2020-08-25T09:34:27.443+00:00
Dylan Zhu-MSFT 6,406 Reputation points
1 answer

How can we ensure that we deliver all DLLs required in all Windows variants?

Dear Sir or Madam, We have been developing an enterprise solution for the kitchen trade for 20 years. We keep having the problem, that with different Windows versions, especially with older, unpatched operating systems, DLLs are missing. We cannot…

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,537 questions
asked 2020-08-24T15:45:00.277+00:00
Klaus Dev. Walther 1 Reputation point
answered 2020-08-25T03:19:02.103+00:00
Jeanine Zhang-MSFT 9,181 Reputation points Microsoft Vendor
1 answer

The MFC Ribbon Bar and High DPI?

Looking at the MFC Ribbon Bar, there seems to be some facility for responding to High DPI in that one can supply alternative images "for High DPI". And for the application button an alternative High DPI image can be provided. On this latter…

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,537 questions
asked 2020-08-21T17:39:25.967+00:00
David Webber 136 Reputation points
answered 2020-08-22T15:59:55.97+00:00
Darran Rowe 561 Reputation points
1 answer

Visual Studio 2019 C++ not recognizing template friends

I have an example C++ program that works in Visual Studio 2019 with a plain version of class1 but not with a template version of class1. Both versions work in gcc. The details of the example can be found at …

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,537 questions
asked 2020-08-20T15:41:58.507+00:00
Bradley Bell 1 Reputation point
commented 2020-08-21T13:16:32.947+00:00
Bradley Bell 1 Reputation point
2 answers One of the answers was accepted by the question author.

GDI+ versions?

Still on my learning curve for using metafiles, I'm now drawing one with GDI+, using the GDI+ Metafile class. But I want antialiasing, and for that, I believe, I have to call (one of the overloads of) Metafile::ConvertToEmfPlus( ). These only…

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,537 questions
asked 2020-08-20T15:45:47.08+00:00
David Webber 136 Reputation points
accepted 2020-08-20T17:43:03.3+00:00
David Webber 136 Reputation points
1 answer One of the answers was accepted by the question author.

IMFDXGIBuffer interface not found

IMFDXGIBuffer interface is missing on Windows Server 2016. I have installed "Media Foundation" feature, but the problem still exists. Also latest DirectX is installed.. What could cause this issue?

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,426 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,537 questions
asked 2020-08-17T10:17:23.413+00:00
iz111 86 Reputation points
accepted 2020-08-20T08:58:34.233+00:00
iz111 86 Reputation points
1 answer

How to pass the interface to the getinstnace of the class instead of passing concrete class in C++

Hello All, In my test project, I am getting the instance of the signleton class (CPSCApp) and that instance I am passing it to the getinstance function of the second class (CCMainApp) . To write the mock functions and set the expectations, I was…

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,537 questions
asked 2020-08-19T12:41:21.767+00:00
Bhavya R 1 Reputation point
commented 2020-08-20T08:46:51.13+00:00
Viorel 112.5K Reputation points
1 answer One of the answers was accepted by the question author.

How to install MFC on VS 2019

Hello, I've installed MFC extension for VS 2019 version 16.7 on Windows x64 operating system as follows: But when I open a new MFC project, before I start editing it, there are many undefined identifiers and two errors of "cannot open…

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,537 questions
asked 2020-08-20T06:19:44.44+00:00
Elinor Ginzburg 106 Reputation points
accepted 2020-08-20T06:58:43.597+00:00
Elinor Ginzburg 106 Reputation points
2 answers

Need information

Hi, I have been trying to know which c++ version am I working within visual studio. When I checked in the package it shows C++ 2010, C++ 2013 andC++ 2015-2019. I would like to know if all the programs are working together or just the latest version! …

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,537 questions
asked 2020-08-19T08:59:04.937+00:00
Tasnim Oyshi 1 Reputation point
answered 2020-08-20T02:43:27.503+00:00
Jeanine Zhang-MSFT 9,181 Reputation points Microsoft Vendor
1 answer

Using Visual C++ 6.0

Using the c++ command gets(Data[Point].Comment); to input data from the keyboard and enter into a variable where the variable Comment is part of a structure. The program just ignores, no error or anything. Have the pre-defined library #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,537 questions
asked 2020-08-19T17:16:35.62+00:00
Sid Kraft 21 Reputation points
commented 2020-08-20T00:08:43.103+00:00
Barry Schwarz 2,186 Reputation points
2 answers One of the answers was accepted by the question author.

MFC dialogue boxes for High DPI

Apologies if this has been discussed here before - if so, I couldn't find it. I am belatedly coming round to high DPI. Doing nothing has been OK up to 150%, but it definitely isn't at 250%. I have a standard MFC app with DPI awareness set. 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,537 questions
asked 2020-08-18T11:47:19.917+00:00
David Webber 136 Reputation points
accepted 2020-08-18T19:06:05.007+00:00
David Webber 136 Reputation points
2 answers

Visual Studio 2019 C++ debugger won't let me set data breakpoints

I'm debugging native C++ code in a native DLL that is being called from a .NET assembly at run time. Under Debug > New Breakpoint and Breakpoint window New button, Data Breakpoint is grayed out. I know this feature is available only for…

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,537 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.
945 questions
asked 2020-08-17T21:31:15.77+00:00
Norm Birkett 1 Reputation point
answered 2020-08-18T09:14:15.2+00:00
Dylan Zhu-MSFT 6,406 Reputation points
1 answer

fatal error C1001: An internal error has occurred in the compiler. (compiler file 'msc1.cpp', line 1325)

i am using visual studio 2013 in windows 10. while compiling code i am getting fatal error. fatal error C1001: An internal error has occurred in the compiler. (compiler file 'msc1.cpp', line 1325) Kindly look into this and do let me know the…

Universal Windows Platform (UWP)
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,537 questions
asked 2020-08-14T17:34:42.293+00:00
bhadresh 1 Reputation point
commented 2020-08-17T05:51:31.997+00:00
bhadresh 1 Reputation point
2 answers

MFC C++ application: how to clear command line arguments in Task Manager?

I have a MFC C++ application which uses command line arguments. But when the program is running, sensitive information entered on the command line will be displayed in the Command Line column of the Task Manager. 1.So how to delete them? 2.How to change…

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,537 questions
asked 2020-08-04T05:08:34.413+00:00
Ji Shirley 181 Reputation points
commented 2020-08-10T06:49:54.477+00:00
Jeanine Zhang-MSFT 9,181 Reputation points Microsoft Vendor
2 answers

How to create a custom control in a dialog with ATL

Hi, I was wondering if anyone can describe the steps for adding an ATL window class as a control to a dialog resource. I found an article discussing it here, but that involves MFC, so I was hoping to get some clarification on how to do it with ATL. So…

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,537 questions
asked 2020-08-06T21:20:47.78+00:00
loop123123 1 Reputation point
answered 2020-08-09T11:18:05.843+00:00
RLWA32 40,571 Reputation points
1 answer One of the answers was accepted by the question author.

Which C++ questions belong here or on Visual Studio Developer Community?

This site looks like a replacement for the old MSDN forums, but Visual Studio also has a C++ Developer Community forum. What sort of questions belong here, and which ones belong on Developer Community?

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,537 questions
asked 2020-08-04T00:55:10.103+00:00
Colin Robertson 96 Reputation points
accepted 2020-08-04T01:05:06.49+00:00
Colin Robertson 96 Reputation points