3,553 questions with C++-related tags

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

Expression must be a modifiable lvalue

Hello, The below code doesn't work. # include <stdio.h> int main() { int arr[] = { 12,14,15,23,45 }; for (size_t i = 0; i < 5; i++) { printf("%d\t",*arr); arr++; } return 0; } But the following…

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,553 questions
asked 2020-09-09T02:12:46.757+00:00
Shervan360 1,481 Reputation points
accepted 2020-09-10T03:49:09.37+00:00
Shervan360 1,481 Reputation points
2 answers One of the answers was accepted by the question author.

Visual C++ ABI question

I have Visual C++ 2019 community (version 16.7.3) with compiler version 19.27.29111. I have some code compiled with Visual C++ 2015 14.0 build 23026 that uses various STL containers and classes (including std::wstring) Can I mix the Visual C++ 2015…

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,553 questions
asked 2020-09-09T09:46:08.287+00:00
Jonathan Wilson 21 Reputation points
accepted 2020-09-09T21:12:09.34+00:00
Jonathan Wilson 21 Reputation points
4 answers

CDateTimeCtr border

Hi , Iam using CDateTimeCtrl datepicker in MFC c++ while creation it has 3D borders ,but i like to set it to normal border .How can i do so? iam creating datepicker as DTPicker.Create(WS_CHILD | WS_VISIBLE| DTS_UPDOWN| WS_BORDER, …

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,553 questions
asked 2020-08-27T14:07:24.103+00:00
Deeptha S 1 Reputation point
answered 2020-09-09T15:57:44.527+00:00
RLWA32 40,941 Reputation points
2 answers One of the answers was accepted by the question author.

A midi controller in a desktop program freezes the graphic controls, though they still function

I have made a music program in Visual Studio for Windows with C and Fmod that contains a graphical keyboard, a selection of sound files etc., and which also contains a midi controller. I use the midi controller by connecting a midi keyboard to the…

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,440 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,553 questions
asked 2020-08-28T10:56:33.447+00:00
Keitel 61 Reputation points
accepted 2020-09-09T11:22:27.01+00:00
Keitel 61 Reputation points
3 answers

MFC -CRichEditCtrl Paste Text

Hi, In MFC dialog based application, I have subclassed CRicheditctrl. In the cricheditctrl, If a text is cut/copy from same richeditctrl, I need to allow pasting of text otherwise, if a text is copied from other control or microsoft word kind of…

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,553 questions
asked 2020-09-08T12:29:17.97+00:00
abc abc 351 Reputation points
answered 2020-09-09T09:52:00.683+00:00
RLWA32 40,941 Reputation points
1 answer

Using Visual C++ 2019

Seems like Visual C++ 2019 has special codes that are not supported by the standard C++ command structures. For example, many tutorials on-line suggest that one can get input from a console by entering the command as follows: Libraries #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,553 questions
asked 2020-09-08T16:15:13.577+00:00
Sid Kraft 21 Reputation points
answered 2020-09-09T02:34:24.747+00:00
Jeanine Zhang-MSFT 9,181 Reputation points Microsoft Vendor
2 answers One of the answers was accepted by the question author.

Microsoft Visual C++ xxxx Redistributable (x64) Installation

Hello, Is there a way to install Microsoft Visual C++ xxxx Redistributable (x64) - xx.x.xx.xx through MEM-CM / Softare Updates / WSUS ? Thanks, Dom

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,553 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.
975 questions
asked 2020-09-07T03:08:02.057+00:00
Dominique DUCHEMIN 831 Reputation points
answered 2020-09-08T14:26:27.83+00:00
Dominique DUCHEMIN 831 Reputation points
1 answer One of the answers was accepted by the question author.

MFC CRichEditCtrl::PreTranslateMessage

Hi, I subclassed CRichEditCTrl and in PreTranslateMessage I am handling ctrl+x. On ctrl+x I am confirming the user whether to delete text case 88: //ctrl+x if(IDNO==AfxMessageBox(_T("Do you want to delete selected…

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,553 questions
asked 2020-09-07T13:49:56.35+00:00
abc abc 351 Reputation points
accepted 2020-09-08T12:18:23.903+00:00
abc abc 351 Reputation points
2 answers One of the answers was accepted by the question author.

Address of Array in C

Hello, Could you please explain the second printf_s? I expect &arr+1 to be similar to arr+1. because arr and &arr are the same. Why sixteen added? Thanks # include <stdio.h> int main() { int arr[] =…

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,553 questions
asked 2020-09-05T22:25:47.877+00:00
Shervan360 1,481 Reputation points
accepted 2020-09-06T23:48:40.113+00:00
Shervan360 1,481 Reputation points
2 answers One of the answers was accepted by the question author.

Error with class definition in header file

I built the example program from the "Header files (C++)" guide, and when I compile the solution I get a number of errors because the class 'my_class' is not recognized by 'my_class.cpp' nor 'my_program.cpp' (codes C2065, C2653, etc).

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,553 questions
asked 2020-09-05T22:45:01.973+00:00
Brenda 21 Reputation points
accepted 2020-09-06T16:13:54.75+00:00
Brenda 21 Reputation points
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,553 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,553 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,553 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,181 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,553 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 40,941 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,553 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,399 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 (Shanghai Wicresoft Co., Ltd.) 31,016 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.
4,672 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,553 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 27,796 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,440 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,553 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,161 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,553 questions
Not Monitored
Not Monitored
Tag not monitored by Microsoft.
36,428 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,406 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,440 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,553 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,161 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,440 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,553 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,161 Reputation points