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…
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…
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…
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)) …
About WinSNMP timeout behavior
日本語で失礼します。 Visual…
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…
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…
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?…
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…
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…
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 =…
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…
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…
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…
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.
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…
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 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++ 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? …