Namespaces

From WxWiki
Jump to navigation Jump to search

If you want to have your own classes in namespace XXX and fear problems with the wxWidgets macros, simply try the following (in your .cpp-File):


 using XXX::MyClass
 BEGIN_EVENT_TABLE(MyClass, Superclass)
 ...
 END_EVENT_TABLE()
 
 namespace XXX
 {
     ...
 }