comparison dwtestoo.cpp @ 2924:248e32f744f0

C++: Attempt to get dwtestoo working with old pre-lambda compilers. Fixed a number of errors regarding this from the last commit, however... GCC 4.2 errors out complaining about forward declaration of class Pixmap. This forward definition is necessary to define some classes that reference each other. The issue seems to be these old GCC implmentations expect... that these classes be defined in different files. Since I forward declare Pixmap before defining Render which uses it, then when I go to define Pixmap, it is already forward declared and gives errors. This code is legit, but the compiler implementation is erroring out.... Not sure how to fix this right now without defining them in separate files.
author bsmith@81767d24-ef19-dc11-ae90-00e081727c95
date Thu, 29 Dec 2022 23:20:12 +0000
parents 969cc3b8bec2
children 03167ee949fd
comparison
equal deleted inserted replaced
2923:969cc3b8bec2 2924:248e32f744f0
54 } 54 }
55 return FALSE; 55 return FALSE;
56 } 56 }
57 }; 57 };
58 58
59 int button_clicked(Clickable *classptr) 59 int button_clicked(DW::Clickable *classptr)
60 { 60 {
61 DW::App *app = DW::App::Init(); 61 DW::App *app = DW::App::Init();
62 app->MessageBox("Button", DW_MB_OK | DW_MB_INFORMATION, "Clicked!"); 62 app->MessageBox("Button", DW_MB_OK | DW_MB_INFORMATION, "Clicked!");
63 return TRUE; 63 return TRUE;
64 } 64 }
65 65
66 int exit_handler(Clickable *classptr) 66 int exit_handler(DW::Clickable *classptr)
67 { 67 {
68 DW::App *app = DW::App::Init(); 68 DW::App *app = DW::App::Init();
69 if(app->MessageBox(APP_TITLE, DW_MB_YESNO | DW_MB_QUESTION, APP_EXIT) != 0) { 69 if(app->MessageBox(APP_TITLE, DW_MB_YESNO | DW_MB_QUESTION, APP_EXIT) != 0) {
70 app->MainQuit(); 70 app->MainQuit();
71 } 71 }