3,743 questions with C++-related tags

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

c++ on VS19 - how can I display a table of number with cloumns aligned using cout

I want to display a scoreboard on the console with the columns lining up as shown in the example below. Team 1 (2) 5 30 45 62 Long name team (0) 10 28 49 165 The team names are…

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,743 questions
asked 2020-09-03T13:03:39.443+00:00
Keith Lovell 61 Reputation points
accepted 2020-09-04T21:55:32.683+00:00
Keith Lovell 61 Reputation points
1 answer One of the answers was accepted by the question author.

DirectX12 Line Geometry Shader

I created a desktop application for win32 based off a skeleton from the book I have Introduction to 3D Game Programming with Directx12 by Frank D Luna. class BoxApp : public D3DApp { public: BoxApp(HINSTANCE hInstance); BoxApp(const BoxApp& rhs) =…

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,743 questions
asked 2020-08-29T21:37:55.863+00:00
Anonymous
commented 2020-09-04T20:45:35.857+00:00
Anonymous
1 answer

CFileDialog on load prints wrong "Load File..."\

MFC Visual Studio 2017 Community Update 16..7.2 under Win 10 Home. Code: string_t strLoadNetFolder = GetResourceString(IDS_STRING139); // Name of folder string_t strNetExt = GetResourceString(IDS_STRING140); // Name of file extension "net" …

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,743 questions
asked 2020-09-04T01:31:10.563+00:00
George Yaroshevsky 1 Reputation point
answered 2020-09-04T06:46:27.737+00:00
Jeanine Zhang-MSFT 9,761 Reputation points Microsoft Vendor
1 answer

In MFC, in CRichEditCtrl, how to drag a word and drop in another position

Hi, In MFC in CRichEditCtrl, I want to support drag and drop for a particular word? Could you please help how to drag a word and drop it in another position?

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,743 questions
asked 2020-09-03T09:55:10.697+00:00
abc abc 351 Reputation points
answered 2020-09-03T10:19:27.523+00:00
RLWA32 45,661 Reputation points
1 answer

Add another course for jobs

How about software testing career and certificiation

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,743 questions
Windows Server PowerShell
Windows Server PowerShell
Windows Server: A family of Microsoft server operating systems that support enterprise-level management, data storage, applications, and communications.PowerShell: A family of Microsoft task automation and configuration management frameworks consisting of a command-line shell and associated scripting language.
5,538 questions
asked 2020-09-02T19:18:43.877+00:00
Kim Milliner 1 Reputation point
answered 2020-09-03T02:53:56.217+00:00
Ian Xue 37,286 Reputation points Microsoft Vendor
1 answer

linking problem when including python in C++ file on Visual Studio 2017

Hello, I'm building user interface for usb device using MFC application on Visual Studio 2017 in C++. I've written a short script in python to read some data from a file, which I wanted to use in my program. I've downloaded all the necessary…

Visual Studio
Visual Studio
A family of Microsoft suites of integrated development tools for building applications for Windows, the web and mobile devices.
5,147 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,743 questions
asked 2020-08-30T07:21:31.637+00:00
Elinor Ginzburg 106 Reputation points
commented 2020-09-03T01:26:00.93+00:00
Tianyu Sun-MSFT 30,831 Reputation points Microsoft Vendor
2 answers

dxva2 decode h264 output format

when I use dxva2 decode h264 in ffmpeg,the output format in surface sometimes is nv12,and sometime is nv21,how can I know which format is .D3DSURFACE_DESC Format is same.

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,636 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,743 questions
asked 2020-08-30T06:03:49.01+00:00
老周 杂家 1 Reputation point
commented 2020-09-02T09:15:59.23+00:00
Rita Han - MSFT 2,166 Reputation points
1 answer

Where exactly is macro $(VCTargets) defined?

We had a discussion before. https://social.msdn.microsoft.com/Forums/vstudio/en-US/e04e7791-c0c4-4598-b900-310878f5af45/how-can-i-locate-and-change-the-vctargetspath-variable?forum=msbuild After hours searching .props files, all the $(VCTarget) in…

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,743 questions
Not Monitored
Not Monitored
Tag not monitored by Microsoft.
39,403 questions
asked 2020-08-21T03:13:55.57+00:00
Chenbinhao 21 Reputation points
commented 2020-09-02T08:56:21.09+00:00
Dylan Zhu-MSFT 6,416 Reputation points
0 answers

dxva2 decode h264

when I use dxva2 decode h264,CreateDevice success when cable connect monitor,otherwise CreateDevice return fail when turn off monitor。video card is nvidia ti 1080. why?

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,636 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,743 questions
asked 2020-08-30T06:14:34.007+00:00
老周 杂家 1 Reputation point
commented 2020-09-02T08:19:36.59+00:00
Rita Han - MSFT 2,166 Reputation points
0 answers

waveInPrepareHeader()/waveInAddBuffer() is not returning anything its getting struck only for motorola manufactured dekstop mics and only if the mic is not a system default mic

Hi Team, We are using windows mmeapi's for capturing the PCM data from mic device from very long time about 5 years. We are familial with the API's and usage and capturing the PCM data from mic with winmm API's. We are opening the device(Motorola…

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,636 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,743 questions
asked 2020-08-31T16:19:41.49+00:00
yugandhar saadili 1 Reputation point
commented 2020-09-02T03:24:29.51+00:00
Rita Han - MSFT 2,166 Reputation points
0 answers

convert exe to misx with c++

I want to convert console exe to misx, it is the first time to me and I want to publish it in windows store and misx package tools want certification how can I package exe to misx with c++ in visual studio

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,743 questions
asked 2020-09-01T17:49:53.617+00:00
Islam Abdelbakey 1 Reputation point
commented 2020-09-01T18:18:28.36+00:00
Castorix31 85,546 Reputation points
2 answers

Using bitwise operators in switch case

I have enum, enum ENUM_MSG_TEXT_CHANGE {COLOR=0,SIZE,UNDERLINE}; void Func(int nChange) { switch(nChange) { case COLOR:break; case SIZE:break; case COLOR|SIZE: break } } case SIZE: and case COLOR|SIZE both gives value 1, so I am…

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,743 questions
asked 2020-09-01T11:00:46.357+00:00
abc abc 351 Reputation points
answered 2020-09-01T11:52:07.52+00:00
RLWA32 45,661 Reputation points
0 answers

Windows Portable device event monitoring using MFC C++

I need to develop an application to monitor events on Portable devices using C++ MFC. I'm using WPD API for the same. But encountering a few issues. I am not getting the Filename in case of the delete operation. and also not able to register for more…

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,636 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,743 questions
asked 2020-08-08T19:28:37.127+00:00
Aparna S A 6 Reputation points
commented 2020-09-01T03:12:49.357+00:00
Zhanglong Wu-MSFT 261 Reputation points Microsoft Vendor
1 answer One of the answers was accepted by the question author.

[UWP] [C++] How do I set theme as system default?

Hello, I'm trying to create an app setting in c++ uwp and it has three radio buttons: "Light" "Dark" and "System Default". How do get the system default (light, dark, etc.) when I initialize the app? Thank you.

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,743 questions
asked 2020-08-29T22:39:43.82+00:00
Eric Tian 211 Reputation points
commented 2020-08-31T08:10:35.817+00:00
Roy Li - MSFT 33,366 Reputation points Microsoft Vendor
1 answer

How to write an algorithm to solve linear equation in C + +?

C + + has no function or library for solving equations

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,743 questions
asked 2020-08-29T04:39:47.2+00:00
光辉 韦 41 Reputation points
answered 2020-08-30T23:06:54.243+00:00
WayneAKing 4,921 Reputation points
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,743 questions
asked 2020-08-30T01:20:27.677+00:00
Shervan360 1,601 Reputation points
accepted 2020-08-30T16:35:45.007+00:00
Shervan360 1,601 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,636 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,743 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,743 questions
asked 2020-08-28T13:24:35.677+00:00
Ed Broughton 31 Reputation points
commented 2020-08-28T20:03:04.983+00:00
Ed Broughton 31 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,636 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,743 questions
asked 2020-08-10T08:02:04.377+00:00
Anonymous
commented 2020-08-28T08:53:15.147+00:00
Rita Han - MSFT 2,166 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.
5,147 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,743 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