diff 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
line wrap: on
line diff
--- a/dwtestoo.cpp	Thu Dec 29 21:56:58 2022 +0000
+++ b/dwtestoo.cpp	Thu Dec 29 23:20:12 2022 +0000
@@ -56,14 +56,14 @@
      }
 };
 
-int button_clicked(Clickable *classptr)
+int button_clicked(DW::Clickable *classptr)
 {
     DW::App *app = DW::App::Init();
     app->MessageBox("Button", DW_MB_OK | DW_MB_INFORMATION, "Clicked!"); 
     return TRUE; 
 }
 
-int exit_handler(Clickable *classptr)
+int exit_handler(DW::Clickable *classptr)
 {
     DW::App *app = DW::App::Init();
     if(app->MessageBox(APP_TITLE, DW_MB_YESNO | DW_MB_QUESTION, APP_EXIT) != 0) {