home | |||||||||||||||||||||||||||||
links |
|
||||||||||||||||||||||||||||
developer's mag main page article part 1 part 2 part 3 part 4 part 5 part 6 part 7 part 8 part 9 |
7 - Changing Your CodeAt this point, you may have a clean compile - congratulations! However, more than likely, you'll get a few little compile errors. The most notable programming changes from OS1 include new and changed functions, such as in CList, CWindow, and CArray - if any of these appear to be related to your problem, review the OS2 documentation for details of the changes.Because of the move to a library, global variables have changed for the GUI subsystem, with some of them becoming functions:
Missing from this list is GUI_Default_Font. For that, you will have to use GetFont() in a window or else store and pass your own font pointer variable. Another noticeable change is that extern is now necessary in const data tables: const char info[]={...must now be extern const char info[]={... The general guideline is that if there is a change necessary, your code won't compile, making it easy to troubleshoot the problem. Previous Section Next Section |
||||||||||||||||||||||||||||
Copyright © 2001-2006 ebmDevMag.com - Legal Notice |