I’d be surprised if there aren’t earlier examples of global access to the application class, in C++ frameworks as well as any other languages before or after it. The BeOS C++ API has a global variable as well for the BApplication class. I forgot (it’s been 9 years since I used OWL, and longer since I used Borland’s TurboVision frameworks for DOS) whether OWL and TurboVision had a global scope instance of the application class. A global application class (which is a cyclic-dependency waiting to happen, and has encouraged millions of people to create such applications) is not first seen in Delphi: Microsoft’s MFC existed before Delphi, and while there weren’t many static methods in the CWinApp class, MFC provides convenient access to the global variable that holds a pointer to it.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |