Reputation: 1847
How do you manipulate GUID's when doing Windows programming in C or C++?
Upvotes: 3
Views: 848
Reputation: 69682
I use boost::uuid : http://www.boost.org/doc/libs/1_43_0/libs/uuid/index.html That way it is guaranteed to still work if I port my application on another plaftorm.
Upvotes: 0
Reputation: 21323
Under Win32 if you want to manipulate GUID's you can use the UuidXXX() Network/RPC functions:
UuidCompare()
UuidCreate()
UuidCreateNil()
UuidCreateSequential()
UuidEqual()
UuidFromString()
UuidHash()
UuidIsNil()
UuidToString()
Upvotes: 5