3,690 questions with C++-related tags

Sort by: Updated
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,690 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 116.6K 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,690 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,690 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,661 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,690 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,676 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,690 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,690 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.
987 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,416 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,690 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,690 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,661 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,690 questions
asked 2020-08-06T21:20:47.78+00:00
loop123123 1 Reputation point
answered 2020-08-09T11:18:05.843+00:00
RLWA32 45,236 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,690 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