3,875 questions with C++-related tags

Sort by: Updated
0 answers

Supporting dark mode with CGridCellCombo in CGridCtrl

Info: CGridCellCombo The CodeProject site is not yet working correctly so I could provide download link if needed.In-place editing in dark mode still uses light controls. Here are some examples: This is the pertinent code from the class: // Create a…

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,875 questions
asked 2025-03-07T18:56:45.17+00:00
ChuckieAJ 306 Reputation points
0 answers

I accidentally reported this how can I install it again?

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,875 questions
asked 2025-03-07T18:24:08.83+00:00
Kyrillossamy-7583 0 Reputation points
0 answers

DLL Registration Fails with Exit Code 5 After Upgrading Platform Toolset to v142 in Visual Studio 2019

I'm upgrading a C++ project from Visual Studio 2012 to Visual Studio 2019, changing the Platform Toolset from v110 to v142. The project builds successfully, but during registration of a DLL, I encounter the following error: error MSB3075: The command…

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,875 questions
asked 2025-03-07T10:18:00.89+00:00
Lavi 0 Reputation points
edited a comment 2025-03-07T15:42:52.24+00:00
RLWA32 47,441 Reputation points
1 answer

Is there an alternative to using CComboBoxEx to include icons?

Is there an alternative to CCombopBoxEx for including icons: As previously discussed on Microsoft Q & A, I have not been successful it getting it to use a dark mode theme. Only a normal CComboBox works properly. And I don't understand why. So my…

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,875 questions
asked 2025-03-05T13:52:01.4066667+00:00
ChuckieAJ 306 Reputation points
commented 2025-03-07T14:50:53.4066667+00:00
ChuckieAJ 306 Reputation points
1 answer

Unexpected AfxThrowFileException in CStdioFile::Read()

I am using CStdioFile::Read in an MFC application, and I noticed that an exception is thrown in the following condition: if ((nRead = (UINT)fread(lpBuf, sizeof(BYTE), nCount, m_pStream)) == 0 && !feof(m_pStream))     …

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,875 questions
asked 2025-02-03T10:55:36.34+00:00
Praveena S Kumar 20 Reputation points
edited a comment 2025-03-07T12:09:32.7566667+00:00
RLWA32 47,441 Reputation points
0 answers

About WinSNMP timeout behavior

日本語で失礼します。 Visual…

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,875 questions
asked 2025-03-06T10:28:37.73+00:00
髙坂 正雄 0 Reputation points
commented 2025-03-07T09:05:43.2033333+00:00
Minxin Yu 12,926 Reputation points Microsoft External Staff
1 answer

MFC, C++ - Logging, best way

I am looking for the best way to add logging to my application. What must it be able to do? Configuration of where the files are stored. 2025-03-06-LogFile.log If the file is larger than 30000 MByte, a new one should be written. Files older than 30…

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,875 questions
asked 2025-03-06T16:58:11.8966667+00:00
Noah Aas 665 Reputation points
answered 2025-03-07T01:40:19.03+00:00
Minxin Yu 12,926 Reputation points Microsoft External Staff
3 answers

Is Microsoft plans to support "Dark Mode" in its own application

Hi, ALL, More and more people are switching to use "Dark Mode". However, it looks like native Windows applications are not supporting "Dark Mode" as they use different coloring scheme. Does MS have plans to update…

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,875 questions
asked 2023-01-05T17:02:43.327+00:00
Igor Korot 51 Reputation points
commented 2025-03-06T19:52:22.83+00:00
Anh Doan 0 Reputation points
1 answer One of the answers was accepted by the question author.

CString format problem and convert with to_string problem

Hello, I have an old project and need to develop a new one, and I need to take over code sequences. Now I get errors with to_string and format. include xstring.h not helped? Project is a MFC C++, version 2010 How do I go about getting the definition?…

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,875 questions
asked 2025-02-28T15:53:01.28+00:00
Noah Aas 665 Reputation points
accepted 2025-03-05T13:49:22.57+00:00
Noah Aas 665 Reputation points
1 answer One of the answers was accepted by the question author.

Issues with RequestPurchaseAsync in MFC C++ Application

An app has been published in the Partner Center, and an addon submission has been created. This is the addon subscription overview. In the application, there is an MFC project and a Windows Runtime Component (Universal Windows) project, as depicted…

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,875 questions
Microsoft Partner Center API
Microsoft Partner Center API
Microsoft Partner Center: A Microsoft website for partners that provides access to product support, a partner community, and other partner services.API: A software intermediary that allows two applications to interact with each other.
363 questions
asked 2024-10-17T17:29:05.5766667+00:00
Ming Yu 25 Reputation points
edited a comment 2025-03-05T01:58:18.39+00:00
Hongkun Wang 20 Reputation points
2 answers One of the answers was accepted by the question author.

Setting the menu icon background colour when using Dark Mode

I have this function that I use to change the background of an image to match the menu background colour. This has worked up until now because I only supported the default theme. So GetSysColor(COLOR_MENU) was correct. 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,875 questions
asked 2025-02-26T15:33:22.3066667+00:00
ChuckieAJ 306 Reputation points
answered 2025-03-04T19:53:33.5566667+00:00
ChuckieAJ 306 Reputation points
1 answer One of the answers was accepted by the question author.

Darkmode combo on statusbar panes

I have two regular CComboBox controls (dropdown list style), and I have superimposed them on two statusbar panes: This is how I create one of the combo boxes: void CChristianLifeMinistryEditorDlg::InitStatusBarPageBreakCombo() { CFont* pFont =…

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,875 questions
asked 2025-03-04T13:29:05.45+00:00
ChuckieAJ 306 Reputation points
accepted 2025-03-04T16:56:54.8533333+00:00
ChuckieAJ 306 Reputation points
3 answers One of the answers was accepted by the question author.

MFC C++ and parse XML file, best way?

Hello! What is the best way to read this in MFC C++? What is the best way to write this in a XML file? Like XDocument in C# <ROOT> <SYSTEM lanes="2" isDispense="0" isPack="0"/> <MACHINE…

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,875 questions
asked 2025-02-28T15:47:21.33+00:00
Noah Aas 665 Reputation points
commented 2025-03-04T14:29:38.81+00:00
Noah Aas 665 Reputation points
1 answer

Retrieve UCRT version

I want to retrieve the version of UCRT that is used when building a C program or that was used on an already built C executable. The main motivation behind this is that we want to create some validations in our toolchain that ensures the version of UCRT…

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,875 questions
asked 2025-02-27T21:18:37.3866667+00:00
Daniel Marquez 0 Reputation points
commented 2025-03-04T08:20:33.45+00:00
Minxin Yu 12,926 Reputation points Microsoft External Staff
1 answer

How to programmatically determine Do Not Disturb mode status?

Is there a winrt api which can be used to programmatically determine Do Not Disturb mode status? Is it related to ToastNotificationMode? https://learn.microsoft.com/en-us/uwp/api/windows.ui.notifications.toastnotificationmode?view=winrt-26100 If…

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,875 questions
asked 2025-02-25T21:38:48.71+00:00
Juma, Nahid 0 Reputation points
commented 2025-03-03T07:07:51.5233333+00:00
Minxin Yu 12,926 Reputation points Microsoft External Staff
1 answer

How to identify the dependency of Microsoft Access Database Engine 2016 Redistributable 64 bit with cpp source code?

I am working on a C++ application that interacts with Microsoft Access Database and need to determine whether it depends on Microsoft Access Database Engine 2016 Redistributable 64.

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,875 questions
asked 2025-03-03T05:03:47.58+00:00
Ankith Vinod 0 Reputation points
answered 2025-03-03T06:27:41.75+00:00
Minxin Yu 12,926 Reputation points Microsoft External Staff
0 answers

How does An Application Send Keystrokes Into A Browser?

Hello Folks: Developing on Windows 10 Pro, Visual Studio 2022 updated today, all C++. I want to write an app that can send page down keystrokes to scroll down through the comment section of YouTube videos. I feel I have the fundamental skills. I…

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,875 questions
asked 2025-03-01T16:32:24.2833333+00:00
a_unique_name 401 Reputation points
commented 2025-03-01T18:39:28.93+00:00
RLWA32 47,441 Reputation points
1 answer

After VS2022 version 17.12.0 update Address Sanitizer no longer works for my C++ project

I've just updated visual studio to the version in the topic and the project which worked ok 5 minutes ago with Asan on (/fsanitize=address) now throws this error when starting the debugger: The procedure entry point __sanitizer_ignore_free_hook____dll…

Visual Studio
Visual Studio
A family of Microsoft suites of integrated development tools for building applications for Windows, the web and mobile devices.
5,447 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,875 questions
asked 2024-11-13T12:56:41.03+00:00
Andrei Hanganu 0 Reputation points
commented 2025-03-01T08:47:34.6566667+00:00
Andrei Hanganu 0 Reputation points
2 answers

Visual Studio c++ debugging doesn't start.Turns on and off per second.

you can see int picture. I try something but doesn't work. 1)I deleted my antivirus program. 2)Upgrade my windows and visual studio. 3)Try tools>options>debugging>symbols tick but this doesn't work. I need a help 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,875 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.
1,031 questions
asked 2020-12-06T02:13:09.857+00:00
Murat Altuntas 1 Reputation point
commented 2025-02-28T18:53:43.1166667+00:00
Tadej S 0 Reputation points
2 answers

C++ console App does not appear as starting project

Hi to all, I am new to Visual Studio 2019 and I am trying to start a .cpp project using the C++ console App but the only one I get is shown in the attached image. I checked in the installation manager and everything is ok. What am I missing? …

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,875 questions
asked 2021-09-23T20:52:56.697+00:00
Data analyst 1 Reputation point
commented 2025-02-28T09:52:23.3733333+00:00
Parikshit Patil 0 Reputation points