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?
8 answers
Sort by: Most helpful
-
Daniel Shepherd 246 Reputation points
2021-07-17T20:07:02.593+00:00 -
Daniel Shepherd 246 Reputation points
2021-07-17T20:09:02.637+00:00 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. -
Daniel Shepherd 246 Reputation points
2021-07-17T20:10:10.117+00:00 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.