I have fixed the error, by calling BOOL CALLBACK right below where it declared the About function. Then, I added a return value to it. The code worked without errors! The dialog box does not open, but that is not related to this issue.
When is this part of code declared?
I am following the tutorial on modeless_dialogs.html about dialog boxes. In an example, when it shows the code CreateDialog(GetModuleHandle(NULL), MAKEINTRESOURCE(IDD_TOOLBAR), hwnd, ToolDlgProc);, at the end it shows ToolDlgProc. And I have one question. When is this defined? How can I implement this? What do I have to add to define something like that?
Windows development | Windows API - Win32
Developer technologies | 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.
Developer technologies | Visual Studio | Other
A family of Microsoft suites of integrated development tools for building applications for Windows, the web, mobile devices and many other platforms. Miscellaneous topics that do not fit into specific categories.
8 answers
Sort by: Most helpful
-
Daniel Shepherd 251 Reputation points
2021-07-17T20:10:10.117+00:00 -
Daniel Shepherd 251 Reputation points
2021-07-17T20:09:02.637+00:00 I have fixed the error, by calling
BOOL CALLBACKright below where it declared the About function. Then, I added a return value to it. The code worked without errors! The dialog box does not open, but that is not related to this issue. -
Daniel Shepherd 251 Reputation points
2021-07-17T20:07:02.593+00:00 I have fixed the error, by calling
BOOL CALLBACKright below where it declared the About function. Then, I added a return value to it. The code worked without errors! The dialog box does not open, but that is not related to this issue.