/**************************************/ /* Useful macros and inline functions */ /**************************************/ #ifndef MACROS_H #define MACROS_H #if wxUSE_UNICODE #define CONV_TO_UTF8( wxstring ) ( (const char*) wxConvCurrent->cWX2MB( wxstring ) ) #define CONV_FROM_UTF8( utf8string ) ( wxConvCurrent->cMB2WC( utf8string ) ) #else #define CONV_TO_UTF8( wxstring ) ( (const char*) ( (wxstring).c_str() ) ) #define CONV_FROM_UTF8( utf8string ) (utf8string) #endif /** * Function GetChars * returns a wxChar* to the actual character data within a wxString, and is * helpful for passing strings to wxString::Printf(wxT("%s"), GetChars(wxString) ) *

* wxChar is defined to be