Skip to main content
Filter by
Sorted by
Tagged with
-3 votes
0 answers
132 views

I have a massive C++14, Win32 project that uses legacy MFC. So far, project compiles and works fine at Platform Toolset v142 (vs2019) and latest Windows 10 SDKs. However, when I set the Platform ...
Luiz Henrique's user avatar
0 votes
0 answers
41 views

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 ...
WillDotson's user avatar
0 votes
0 answers
81 views

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. ...
MrTux's user avatar
  • 34.4k
0 votes
0 answers
50 views

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'...
KokoCa's user avatar
  • 231
3 votes
1 answer
208 views

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 ...
Kenneth Sutherland's user avatar
0 votes
0 answers
47 views

I’m using FarPoint Spread COM (version 8.0.0.29) in a C++ MFC application. I'm coming across an issue where, after running the app for a while, the embedded button cells paint black and the embedded ...
Trilok Bhattacharya's user avatar
0 votes
0 answers
46 views

I need to track the location of a window while dragging by the title bar. Class Wizard did the boilerplate part of the work. In the .h: ON_WM_MOVING() END_MESSAGE_MAP() In the .cpp: ...
Fred W's user avatar
  • 49
0 votes
0 answers
592 views

I installed every available MFC option, which is not out of support, restarted Visual Studio 2022, and I still get this error. MFC libraries are required for this project. Install them from the ...
Sarah Weinberger's user avatar
0 votes
1 answer
85 views

I am trying to show a task dialog: CMeetingScheduleAssistantDlg::ScheduleCheckResult CMeetingScheduleAssistantDlg::ShowResultsInTaskDialog( const CString& content, const bool ...
Andrew Truckle's user avatar
4 votes
2 answers
265 views

How can I get information about an unknown exception, like in the code below? void foo() { throw 'A'; } ... try { foo(); } catch (const std::exception& exc) { std::cout << exc.what(); ...
Jabberwocky's user avatar
  • 51.3k
0 votes
1 answer
107 views

I am having a problem in MFC where a CEdit derived Edit-control only reacts to CTRL+V after it has been clicked on. Calling SetFocus() on it gives it keyboard focus, characters can be typed in it, but ...
qnyz's user avatar
  • 505
0 votes
0 answers
69 views

I need some help with a very ancient version of Visual C++ (VS6, MFC). I have an old project (2005 year approx), it can run Word through OLE and generate some page inside. As far as I remember I added ...
Evgeny's user avatar
  • 1
0 votes
2 answers
173 views

I have a series of functions and objects in C++ that will be called/invoked by Lua, I already have existing code that does exactly this (using the MFC COM dispatch) for VBScript (see the bottom of ...
N Krueger's user avatar
0 votes
1 answer
192 views

It would seem to be a trivial matter. I'm writing a C++ document-view app in VS 2022. I want to change the background color of the main window's client area. I don't need to change it dynamically ...
WillDotson's user avatar
0 votes
0 answers
131 views

I am experiencing a weird bug in the function CopyAcceleratorTable when compiled for 64 bit (CopyAcceleratorTable). I have two accelerator tables (from two dlls) which I want to concatenate into a ...
pisoir's user avatar
  • 226
2 votes
0 answers
163 views

I'm working on a Windows MFC GUI application that uses CUDA for high-performance image processing. Previously, I was using CUDA 12.0 on a system with an RTX 3090 (Ampere), and everything compiled and ...
powermew's user avatar
  • 163
0 votes
0 answers
42 views

DarkTaskDialog is an excellent way to support a dark version of the task dialog in a MFC project. Example from the documentation: I have added support for dark mode to about 95% of controls in my MFC ...
Andrew Truckle's user avatar
0 votes
0 answers
74 views

I'm converting what were formerly separate DLL and EXE modules of an MFC application (that is itself based on combining two disparate codebases) into static library (LIB) projects. I took steps to ...
Dennis's user avatar
  • 2,624
0 votes
0 answers
110 views

I would like to host a WPF control in a MFC Dialog application. I am following the chapter 7.4.1 (Using a mixed-mode extension DLL) instructions mentioned in book (C++/CLI in Action by NISHANT ...
latosvarun's user avatar
1 vote
0 answers
52 views

I use the SetCustomColors function to set the colours of my CMFCPropertyGridCtrl object when in dark mode. However, when you tab off to another control in dialog, the last row remains selected. This ...
Andrew Truckle's user avatar
3 votes
0 answers
50 views

Is there a way in a MDI application to see if an instance of a doc/view already exists? I can create an instance from a menu command, but I want to ensure that only 1 instance ever exists at any time. ...
Patrick Smith's user avatar
3 votes
1 answer
106 views

I have seen the repository on GitHub: https://github.com/ysc3839/win32-darkmode I implemented the FixDarkScrollBars function in my test project. The good news is that it works for 99% of my dialog: ...
Andrew Truckle's user avatar
1 vote
1 answer
61 views

In my test dialog I have a CTreeCtrl and a CMFCPropertyGridCtrl: When I run these controls in dark mode they look like this: The CTreeCtrl still has the expandable icons as a square with +/-. But ...
Andrew Truckle's user avatar
-1 votes
2 answers
69 views

Is there some way to reduce this code? CString j; j.Format("%.2f", cardsum); rep_templ.Replace("%cardsum%", j); rep_templ.Replace("%cardsum%", CString().Format("%....
Сергей Соколов's user avatar
0 votes
0 answers
217 views

I am currently investigating a crash dump from a client site, as I cannot debug it in live mode. In short, the application crashes with the exception code 0xC015000F, which indicates that "the ...
Alim Abaev's user avatar

1
2 3 4 5
264