X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/bbcdf8bc7ca806d8278c7cb6d09d5590378b67d8..c31c4e162ec0f85ecaeeb721dc757a6bba01265a:/include/wx/msw/ole/uuid.h diff --git a/include/wx/msw/ole/uuid.h b/include/wx/msw/ole/uuid.h index 4da624b09e..b70672d3e3 100644 --- a/include/wx/msw/ole/uuid.h +++ b/include/wx/msw/ole/uuid.h @@ -17,7 +17,7 @@ #ifdef __GNUG__ #pragma interface "uuid.h" #endif - +#include "wx/wxchar.h" // ------------------------------------------------------------------ // UUID (Universally Unique IDentifier) definition // ------------------------------------------------------------------ @@ -49,12 +49,12 @@ typedef unsigned char uchar; // ------------------------------------------------------------------ // uses RPC functions to create/convert Universally Unique Identifiers -class Uuid +class WXDLLEXPORT Uuid { private: UUID m_uuid; - uchar *m_pszUuid; // this string is alloc'd and freed by RPC - char *m_pszCForm; // this string is allocated in Set/Create + wxUChar *m_pszUuid; // this string is alloc'd and freed by RPC + wxChar *m_pszCForm; // this string is allocated in Set/Create void UuidToCForm(); @@ -64,7 +64,7 @@ private: public: // ctors & dtor Uuid() { Init(); } - Uuid(const char *pc) { Init(); Set(pc); } + Uuid(const wxChar *pc) { Init(); Set(pc); } Uuid(const UUID &uuid) { Init(); Set(uuid); } ~Uuid(); @@ -76,16 +76,16 @@ public: void Create(); // set value of UUID - bool Set(const char *pc); // from a string, returns true if ok + bool Set(const wxChar *pc); // from a string, returns true if ok void Set(const UUID& uuid); // from another UUID (never fails) // accessors - operator const UUID*() const { return &m_uuid; } - operator const char*() const { return (char *)(m_pszUuid); } + operator const UUID*() const { return &m_uuid; } + operator const wxChar*() const { return (wxChar *)(m_pszUuid); } // return string representation of the UUID in the C form // (as in DEFINE_GUID macro) - const char *CForm() const { return m_pszCForm; } + const wxChar *CForm() const { return m_pszCForm; } }; -#endif //_WX_OLEUUID_H \ No newline at end of file +#endif //_WX_OLEUUID_H