Changed the wx_str() methods back to c_str() and cast the result with (const char *).
Tried changing the constructor OpenGLCanvas; but, it had run-time errors.
Commented out the code that failed.
Static target compiles and runs without crashing when WXWIN_COMPATIBILITY_2_8=1.
Changed CB Project to building wxWidgets 3.0; note, still have not been able to compile wxWidgets 3.0 Monolithic DLL in order to test CB DLL Build.
Changed from wx28 wxGrid method SetEditable to wx30 method EnableEditing.
More WXWIN_COMPATIBILITY_2_8=0 changes.
Replaced function png_set_gray_1_2_4_to_8 with the wrong function; the correct one is png_set_expand_gray_1_2_4_to_8.
Removed the use of the old function png_set_gray_1_2_4_to_8 it was deprecated years ago; not worth adding an #if till I see a problem.
Code now compiles and runs with wxWidgets 3.0 when WXWIN_COMPATIBILITY_2_8=1.