13,174 questions
Score of 1
0 answers
134 views
Missing MFC dialog properties attributes option
I just install Visual Studio 2022, and simply create an MFC project, and found that in dialog design view, all drop-down attributes option are empty.
I already reinstalled VS 2022, and created a new ...
Score of 1
2 answers
234 views
Word VBA/Automation function Documents.Open() suddenly broken after Security Update 06/2026 (KB5094126)
Since I installed the latest Windows 11 Security Update (June 2026) a few days ago, code of mine that used to run flawlessly for years has stopped working. The same is happening to customers in the ...
Score of 0
1 answer
108 views
Why do my property sheet outlook bar icons have a magenta tinge?
I am using MFC.
The property sheet is displaying the 32 x 32 images. And the dialogs static controls are showing the 64 by 64 versions.
The property sheet is of type CMFCPropertySheet
And the other ...
Score of 2
1 answer
164 views
Issue compiling template class [duplicate]
I've been working on legacy MFC application compiled with /std:c++17. It was compiling fine until I upgraded it to use c++20. This library I've been working on has a template class depending on some ...
Score of 4
1 answer
715 views
Visual Studio 2026 MFC Application Wizard not shown in New Projects dialog
I want to create an MFC application in MS Visual Studio 2026 Community Edition using the wizard. However, the wizard does not appear in the New Project dialog.
What do I need to install to get the ...
Score of 0
2 answers
213 views
Reading a serial event with the winapi.h in MFC
I have a dialog-based MFC application build in Visual Studio. With my App I want to read a serial event from a potentiometer, which is attached to an Arduino board.
The Arduino is working just fine, ...
Score of 0
1 answer
120 views
OnDraw() not triggered by OnUpdate() until change from CListView to CView
My question is how is a multiple document MFC application whose view was derived from CListView and was changed to the simpler CView in order to enable OnDraw() affected? Does this introduce problems?
...
Score of 0
1 answer
113 views
Using a derived edit box control to process keystrokes ahead of CEdit control in MFC
In a modeless dialog box in MFC, I want to create an edit box control, derived from CEdit, that will allow me to intercept keystrokes (in particular the CR) and process it differently from the default ...
Score of 0
1 answer
86 views
In subclassing an edit box using SetWindowLongPtrA() to pass a function address, I get an "incompatable type" error
I'm trying to subclass an edit box in a dialog in VS C++ 2022. I want to intercept any key presses in a particular edit box to do further processing.
Here's my code. The 4th line confuses me because I ...
Score of 0
0 answers
117 views
Loading a resource DLL build for a different architecture to only assess resources
I'm programming a MFC application that should be internationalized. Currently I'm providing separate language DLLs per architecture (ARM64, x86, x64), but I'm unsure whether this is really necessary. ...
Score of 0
0 answers
147 views
Use resource DLL loaded using LoadLibraryEx(..., LOAD_LIBRARY_AS_DATAFILE | LOAD_LIBRARY_AS_IMAGE_RESOURCE) with AfxSetResourceHandle
I'm programming a MFC application that should be internationalized. Currently I'm providing separate language DLLs per architecture (ARM64, x86, x64), but recently I came across ::LoadLibraryEx(...
Score of 0
0 answers
78 views
Using ITaskService set up "Basic" Event instead of "Custom" c++/mfc
I'm using C++/MFC to configure a Task Scheduler task that is triggered on an Event. I set it up manually and exported the task to get the gist of what I need to set up.
I have this working fine but I'...
Score of 0
0 answers
102 views
Not setting paper Size on UI Printer preferences
Unable to set the paper size on printer settings UI with PrintDialogEx, it's always giving setting to letter in mfc. Please let me know for any issue.
PRINTPAGERANGE cRangeBuffer[CXPrintRangeData::...
Score of 3
1 answer
240 views
Getting a compilation error when using a MFC CList with CStringArray elements
I have created a list of strings like this:
typedef CList<CString, CString&> MyListOfStrings;
MyListOfStrings aListOfStrings;
It compiles fine. Now I want to replace CString with ...
Score of 1
1 answer
88 views
MFC Edit Control - define unique name
We are trying to create UI tests for our old legacy applications (MFC + NET Framework).
We use Visual Studio 2019 + Appium. All C# stuff works well.
But we have a problem: to work with UI controls we ...