3,628 questions with C++-related tags

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

Dynamic Create ownerdraw ListBox in Mfc

I have created my own list box with the base class of CListBox. when I use it in the Dialog box it works fine. but when I try to create dynamic at runtime it gives an error. here is my code for it m_LstList= new x_ListBox; …

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,628 questions
asked 2020-09-21T13:09:10.107+00:00
Rocky Shr 41 Reputation points
answered 2020-09-21T15:37:25.05+00:00
Rocky Shr 41 Reputation points
1 answer One of the answers was accepted by the question author.

[TSF-IME] Page size

Hi, i got a question about Text Service Framework, the pages /pagesize and selection index. Do i understand it right that based the the selected candidate the page is set ? Is there a way to get all candidates of the currentpage and/or set a…

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,512 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,628 questions
asked 2020-09-05T20:16:50.627+00:00
Oliver Sradnick 21 Reputation points
commented 2020-09-20T15:47:06.317+00:00
Oliver Sradnick 21 Reputation points
1 answer

CRichEditctrl-SetDefaultCharFormat

Hi, I added my own format embed text(%###%) in the cricheditctrl without typing by calling replacesel() at zeroth position. For embed text I am using green color.After adding embed text if I type characters from zeroth position, I am getting green…

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,628 questions
asked 2020-09-17T13:43:43.257+00:00
abc abc 351 Reputation points
answered 2020-09-18T17:16:27.473+00:00
RLWA32 43,046 Reputation points
2 answers

AVI file with inverted image

I've used the sample from https://learn.microsoft.com/en-us/windows/win32/medfound/tutorial--using-the-sink-writer-to-encode-video and modified it to create as avi file instead of mp4. This works as desired if the input FPS is 30. If I modify it to…

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,512 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,628 questions
asked 2020-09-14T07:34:14.15+00:00
Shyamala Devi 1 Reputation point
commented 2020-09-16T08:17:08.93+00:00
Rita Han - MSFT 2,161 Reputation points
1 answer One of the answers was accepted by the question author.

MFC CRichEditCtrl - Flickering while changing the cursor on the mouse move event

Hi, In subclassed CRichEditCTrl, on mousemove event, I am changing curdor from default to hand cursor when moving mouse pointer over a particular format of text. I am getting flickering when moving mouse over the text. That is the cursor is changed to…

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,628 questions
asked 2020-09-15T11:24:04.233+00:00
abc abc 351 Reputation points
accepted 2020-09-15T11:59:13.69+00:00
abc abc 351 Reputation points
1 answer One of the answers was accepted by the question author.

Where are these capablities documented? (inputinjection, applicatioViewActivation) and how to embed external applicationviews into my UWP apps window

I recenty looked at some system apps and tried to figure out how I can achieve the same effect as those apps. I found this in an apps appxmanifest and can't find any documentation: …

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,628 questions
asked 2020-09-11T02:22:56.073+00:00
valaki2K18ban 21 Reputation points
accepted 2020-09-14T23:03:37.917+00:00
valaki2K18ban 21 Reputation points
3 answers

Console window size in c++ for VS19.

I am developing a c++ console application and would like to increase the size of the default console window that is produced by c++ under vs19. If it is possible, how would that be achieved?

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,628 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.
1,009 questions
asked 2020-09-10T03:46:22.047+00:00
Keith Lovell 61 Reputation points
commented 2020-09-14T10:14:11.497+00:00
RLWA32 43,046 Reputation points
3 answers

Visual C++ Why are two button clicks required to obtain button click event handler result

Q&A - I have a small C++ app in which it takes two clicks of a button to produce the desired even handler action. The app controls a voltage digitizer over the USB and plots the measured result in a pictureBox control. The app GUI has several Button…

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,628 questions
asked 2020-09-07T21:59:11.207+00:00
Marshall Hollimon 1 Reputation point
commented 2020-09-14T02:19:03.11+00:00
Jeanine Zhang-MSFT 9,431 Reputation points Microsoft Vendor
1 answer

VS-2019 Debugging MFC

I'm using MFC as a shared DLL in a program with an EXE and a number of my own DLLs, some of which use MFC. Using VS-2019, when I step through my program's DEBUG build, it won't step into the MFC library source code. How do I get it to do so? Dave

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,628 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.
966 questions
asked 2020-09-11T13:03:50.997+00:00
David Webber 136 Reputation points
commented 2020-09-14T01:57:18.013+00:00
Dylan Zhu-MSFT 6,406 Reputation points
2 answers

CMFCButton as a radio button

I have just discovered that the 'Feature Pack' class CMFCButton allows me to have an image and text on push-like radio button. (Normally this would require it to be owner-draw, and radio buttons don't have the owner-draw possibility, so I'm quite…

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,628 questions
asked 2020-09-10T14:25:17.083+00:00
David Webber 136 Reputation points
commented 2020-09-14T01:19:31.577+00:00
Jeanine Zhang-MSFT 9,431 Reputation points Microsoft Vendor
3 answers One of the answers was accepted by the question author.

Copy string in C

Hello, Could you please explain why we cannot assign a string to another, whereas, we can assign a char pointer to another char pointer? Thanks #include<stdio.h> int main() { char str1[] = "Hello"; char str2[10]; char* s =…

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,628 questions
asked 2020-09-12T08:33:10.32+00:00
Shervan360 1,481 Reputation points
accepted 2020-09-13T00:42:54.207+00:00
Shervan360 1,481 Reputation points
0 answers

VS 2017 C++ cannot sccroll view

Alert me|Edit|Delete|Change type Question You cannot vote on your own post 0 I am having a problem with scrolling my view (single document, only one view). In older versions of mfc I used the following coding to set the scroll: void…

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,628 questions
asked 2020-09-08T15:03:08.727+00:00
Charles Sterbakov 21 Reputation points
commented 2020-09-11T20:09:44.513+00:00
Charles Sterbakov 1 Reputation point
4 answers

Microsoft Visual C++ 2015-2019 Downloading Problem

Hello, first of all. I tried many times download C++ 2015-2019 but it gives me error every times. When I tried to download it, it says ''vc_runtimeminimum_x64 msi''. I tried couple solutions but it doesn't solved. I downloaded Visual Studio 2017 and…

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,628 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.
1,009 questions
asked 2020-09-07T13:12:34.123+00:00
Özgür Çağan 6 Reputation points
commented 2020-09-11T05:14:37.41+00:00
Anna Xiu-MSFT 27,731 Reputation points Microsoft Vendor
2 answers One of the answers was accepted by the question author.

Inline Assembly Call to compiled Subroutine gives access violation executing location

I have recently updated a large C++ program from Visual Studio 2005 to Visual Studio 2019. All has worked well except for this one problem where using inline assembly, we call into a compiled subroutine. Stepping into the "CALL" in disassembly…

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,628 questions
asked 2020-09-09T21:42:57+00:00
ptmelt76 96 Reputation points
accepted 2020-09-10T21:47:57.757+00:00
ptmelt76 96 Reputation points
1 answer One of the answers was accepted by the question author.

Activate MDI window

I have an MDI app, which start as hidden, and an icon is shown in system tray. After a time (few seconds), from that system tray icon is show up a notification balloon. And when I click on this balloon, I call this code: void CMainFrame::On0Restore()…

Visual Studio
Visual Studio
A family of Microsoft suites of integrated development tools for building applications for Windows, the web and mobile devices.
4,869 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,628 questions
asked 2020-09-02T10:08:55.493+00:00
Flaviu_ 971 Reputation points
accepted 2020-09-10T08:46:40.44+00:00
Flaviu_ 971 Reputation points
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,628 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,628 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,628 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 43,046 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,512 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,628 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,628 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 43,046 Reputation points