Home | News | Projects | Releases
Bugs | RFE | Repositories | Help
Added #include <rpc.h> to Win32 section.
[xestiaab/.git] / source / common / uuid.cpp
index f3603b1..c0e512f 100644 (file)
@@ -4,6 +4,7 @@ wxString GenerateUUID()
 {
 
 #if defined(__WIN32__)
+#include <rpc.h>
     UUID UUIDData;
     UuidCreate(&UUIDData);
     wchar_t* UUIDStr = 0;
@@ -36,6 +37,9 @@ wxString GenerateUUID()
     
     pclose(uuid_hdl);
     
+    Result = wxString::Format(wxT("%s"), uuidout);
+    Result.Trim();
+    
 #endif
     
     return Result;
@@ -49,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