3,878 questions with C++-related tags

Sort by: Updated
0 answers

Using Arrays with Unions or Structures Not Working

I'm trying to use arrays, with CheckFeatureSupport, rather than check each feature with separate code. I am using different types of elements, so I have to use either union or struct. The problems I am having, is the array of the struct does not point 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,878 questions
asked 2025-03-08T03:02:37.23+00:00
CDev-8220 240 Reputation points
commented 2025-03-09T10:45:11.22+00:00
CDev-8220 240 Reputation points
0 answers

SQL installation issues

May I ask what is causing this interface when SQL cannot be installed on the computer?

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,878 questions
asked 2025-03-09T03:47:16.67+00:00
虫虫 0 Reputation points
commented 2025-03-09T10:27:17.46+00:00
RLWA32 47,521 Reputation points
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,878 questions
asked 2025-03-07T18:56:45.17+00:00
ChuckieAJ 311 Reputation points
commented 2025-03-09T10:11:17.3966667+00:00
ChuckieAJ 311 Reputation points
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,878 questions
asked 2023-01-05T17:02:43.327+00:00
Igor Korot 56 Reputation points
edited a comment 2025-03-09T06:26:43.2633333+00:00
Anh Doan 0 Reputation points
1 answer One of the answers was accepted by the question author.

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,878 questions
asked 2025-03-06T16:58:11.8966667+00:00
Noah Aas 685 Reputation points
accepted 2025-03-08T15:18:36.2966667+00:00
Noah Aas 685 Reputation points
0 answers

Why are system's MSVC runtime DLLs used instead of ours ones sometimes?

In order to decrease our app's installer size and do not force the user to download MSVC runtime redistributable installer, we include all the MSVC runtime DLLs we need (and only them) into our installer using the following technique. All was working…

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,878 questions
asked 2025-03-08T10:45:07.2466667+00:00
Alervd_000 0 Reputation points
edited a comment 2025-03-08T12:01:38.6666667+00:00
RLWA32 47,521 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,878 questions
asked 2025-03-07T18:24:08.83+00:00
Anonymous
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,878 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,521 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,878 questions
asked 2025-03-05T13:52:01.4066667+00:00
ChuckieAJ 311 Reputation points
commented 2025-03-07T14:50:53.4066667+00:00
ChuckieAJ 311 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,878 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,521 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,878 questions
asked 2025-03-06T10:28:37.73+00:00
髙坂 正雄 0 Reputation points
commented 2025-03-07T09:05:43.2033333+00:00
Minxin Yu 13,001 Reputation points Microsoft External Staff
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,878 questions
asked 2025-02-28T15:53:01.28+00:00
Noah Aas 685 Reputation points
accepted 2025-03-05T13:49:22.57+00:00
Noah Aas 685 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,878 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,878 questions
asked 2025-02-26T15:33:22.3066667+00:00
ChuckieAJ 311 Reputation points
answered 2025-03-04T19:53:33.5566667+00:00
ChuckieAJ 311 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,878 questions
asked 2025-03-04T13:29:05.45+00:00
ChuckieAJ 311 Reputation points
accepted 2025-03-04T16:56:54.8533333+00:00
ChuckieAJ 311 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,878 questions
asked 2025-02-28T15:47:21.33+00:00
Noah Aas 685 Reputation points
commented 2025-03-04T14:29:38.81+00:00
Noah Aas 685 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,878 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 13,001 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,878 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 13,001 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,878 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 13,001 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,878 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,521 Reputation points