Home | News | Projects | Releases
Bugs | RFE | Repositories | Help
Added #include <rpc.h> to Win32 section.
[xestiaab/.git] / source / common / uuid.cpp
index a658829..c0e512f 100644 (file)
@@ -4,6 +4,7 @@ wxString GenerateUUID()
 {
 
 #if defined(__WIN32__)
+#include <rpc.h>
     UUID UUIDData;
     UuidCreate(&UUIDData);
     wchar_t* UUIDStr = 0;
@@ -11,10 +12,6 @@ wxString GenerateUUID()
     wxString Result(UUIDStr);
 #elif defined(__HAIKU__)
     
-#elif defined(__APPLE__)
-    
-    wxString Result;
-    
 #else
     
 #include <stdio.h>
@@ -40,18 +37,8 @@ wxString GenerateUUID()
     
     pclose(uuid_hdl);
     
-/*#include <uuid/uuid.h>
-    
-    uuid_t *uuid;
-    uuid_create(&uuid);
-    char *strdata[100];
-    
-    strdata = NULL;
-    
-    wxString Result = wxString::FromUTF8(strdata);
-    
-    delete strdata;
-    strdata = NULL;*/
+    Result = wxString::Format(wxT("%s"), uuidout);
+    Result.Trim();
     
 #endif
     
@@ -66,4 +53,4 @@ bool CheckUUID(wxString UUIDInc)
     
     return Result;
     
-}
\ No newline at end of file
+}
Xestia Software Development
Yn Maystri
© 2006 - 2019 Xestia Software Development
Software

Xestia Address Book
Xestia Calendar
Development

Xestia Gelforn
Everything else

About
News
Privacy Policy