Thread: Omg!
View Single Post
Old Jan 1st, 2007, 11:11 PM   #3
Game_Ender
Professional Programmer
 
Game_Ender's Avatar
 
Join Date: May 2006
Location: Maryland, USA
Posts: 306
Rep Power: 3 Game_Ender is on a distinguished road
There is nothing wrong with that code at all. The following compiles fine with GCC 4.1 and all warnings cranked up.
cpp Syntax (Toggle Plain Text)
  1. class nStatic {};
  2. class nContainerWindow {};
  3. class nEdit {};
  4. class nTickBox {};
  5. class nComboBox {};
  6. class nButton {};
  7.  
  8. class CustomizeDialog :
  9. public nContainerWindow
  10. {
  11. nStatic LabelNick;
  12. nStatic LabelQutMessage;
  13. nEdit TextNick;
  14. nEdit TextQuitMessage;
  15. nTickBox CheckRecordNoIncChat;
  16. nTickBox CheckRecordAll;
  17. nStatic LabelRecording;
  18. nTickBox CheckRecNoIncUserInfo;
  19. nStatic LabelGameplay;
  20. nComboBox CmbGameMode;
  21. nButton ButtionDone;
  22. nButton ButtonAdvanced;
  23.  
  24. class SW_SpecialLabel : public nStatic {
  25. void initialize();
  26. } SpecialLabel;
  27.  
  28. public:
  29.  
  30. void on_initialize();
  31.  
  32. };
  33.  
  34. int main(void)
  35. {
  36. return 0;
  37. }
Game_Ender is offline   Reply With Quote