3,548 questions with C++-related tags

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

Pointer Size in 64-bit Operating System

Hello, I read in 64-bit OS pointer is 8-byte. My OS in 64-bit but pointer size is 4 bit.

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,548 questions
asked 2020-08-30T01:20:27.677+00:00
Shervan360 1,481 Reputation points
accepted 2020-08-30T16:35:45.007+00:00
Shervan360 1,481 Reputation points
2 answers One of the answers was accepted by the question author.

About Messagebox and DialogBox

I created a dialog box by DialogBox() function. But there was a problem when I tried to add a message box to my DialogProc. The message box could show but I couldn't close it. I noticed that it also couldn't be active (Its title bar was always white). …

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,434 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,548 questions
asked 2020-08-29T06:15:58.477+00:00
szx0427 101 Reputation points
commented 2020-08-29T11:25:41.787+00:00
szx0427 101 Reputation points
1 answer One of the answers was accepted by the question author.

None of my projects (all C++) load on new computer

I recently replaced a computer. On the new computer, none of my Visual Studio projects will load (they are all C++). I receive the following error message: error : Project "" does not contain any configuration. The lack of useful…

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,548 questions
asked 2020-08-28T13:24:35.677+00:00
Ed Broughton 26 Reputation points
commented 2020-08-28T20:03:04.983+00:00
Ed Broughton 26 Reputation points
1 answer

change the display setting in windows 10

Hi, I have two display ports in integrated system. Based on the ports ID i need to clone or extend the displays Programatically in C++. Is any one have an idea how to clone and extend the displays? Do we have any Windows API to do it? I have used…

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,434 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,548 questions
asked 2020-08-10T08:02:04.377+00:00
Anonymous
commented 2020-08-28T08:53:15.147+00:00
Rita Han - MSFT 2,161 Reputation points
6 answers One of the answers was accepted by the question author.

Using VS2019 with WSL (Windows Subsystem for Linux)

Hi there - I tried to post a question about Visual Studio and got redirected here (so hopefully it's the right place !! ) I'm trying to install WSL which is a new-ish technology for allowing Visual Studio to build Linux apps. I followed these…

Visual Studio
Visual Studio
A family of Microsoft suites of integrated development tools for building applications for Windows, the web and mobile devices.
4,657 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,548 questions
asked 2020-08-20T15:48:35.387+00:00
John Emmas 161 Reputation points
accepted 2020-08-28T07:11:52.54+00:00
John Emmas 161 Reputation points
1 answer

Visual C++ 2019 Debug

Purchased Microsoft Visual C++ 6.0 several years back. When in debug mode, could display the debug toolbar which allowed one to step over, step into, run to cursor, etc. Realizing that this is old technology, decided to use the free, Visual C++ 2019 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,548 questions
asked 2020-08-26T19:04:31.26+00:00
Sid Kraft 21 Reputation points
commented 2020-08-27T18:33:38.577+00:00
Viorel 112.8K Reputation points
0 answers

When calling thread::Join() getting an error "The inferior stopped because it triggered an exception" in C++

Hello All, I have a main thread that will process the messages posted to the message queue. When destructing the resources I am sending the MSG_NONE message to the message queue to process. And then calling the thread .join() like as shown below: …

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,548 questions
asked 2020-08-26T13:39:06.13+00:00
David student 1 Reputation point
commented 2020-08-27T18:24:13.877+00:00
Viorel 112.8K Reputation points
3 answers

C Commands

Well, using the Visual C 2019, tried all of the following, will not work! Trying to input an integer number from the keyboard, tried: -scanf_s("%I",Variable); -scanf_s("%d",Variable); -scanf_s("%u",Variable); All…

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,548 questions
asked 2020-08-24T20:27:38.413+00:00
Sid Kraft 21 Reputation points
commented 2020-08-27T05:21:38.023+00:00
Jeanine Zhang-MSFT 9,181 Reputation points Microsoft Vendor
2 answers One of the answers was accepted by the question author.

417 errors just opening C++ project before I even write code.

errorhell.jpg​ Hi, I apologize if I am posting in the wrong place. I am trying to write a simple program in C++ using Visual Studio and no matter how I set up the project, whatever template option is offered, I get about 417 errors. Before I…

Visual Studio
Visual Studio
A family of Microsoft suites of integrated development tools for building applications for Windows, the web and mobile devices.
4,657 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,548 questions
asked 2020-08-25T06:48:57.677+00:00
chris willoughby 21 Reputation points
answered 2020-08-27T05:15:55.937+00:00
chris willoughby 21 Reputation points
1 answer One of the answers was accepted by the question author.

Need to install and Run Visual C++ 2008 Edition software in Window 10

Hello Team, I downloaded and installed Visual C++ 2008 from following link. https://www.microsoft.com/en-ca/download/confirmation.aspx?id=15336 But It not working in my laptop. Please support and suggest me to run in my system. System…

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,548 questions
Visual Studio Setup
Visual Studio Setup
Visual Studio: A family of Microsoft suites of integrated development tools for building applications for Windows, the web and mobile devices.Setup: The procedures involved in preparing a software program or application to operate within a computer or mobile device.
971 questions
asked 2020-08-26T08:21:06.633+00:00
Amit Singh 21 Reputation points
commented 2020-08-27T02:46:48.323+00:00
Amit Singh 21 Reputation points
3 answers

string conversion

I have some doubts about the string conversions in C++. To convert const WCHAR* to LPWSTR can I use the below code? LPWSTR dest; const WCHAR* source =L"Hello"; dest = 0; wcsncpy_s(dest, MAX_PATH, source ,…

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,548 questions
asked 2020-08-25T19:26:31.403+00:00
Anonymous
answered 2020-08-25T23:54:45.82+00:00
WayneAKing 4,921 Reputation points
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,548 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,548 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.
948 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,548 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,548 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,548 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,548 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,434 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,548 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,548 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.8K 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,548 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