I am looking for the easiest way to compare two GUIDs for equality in C ++. Of course, there is a predefined function for this.
The solution should work with Visual C ++ 2010.
Update:
I am talking about a GUID as defined in Guiddef.h:
typedef struct _GUID { unsigned long Data1; unsigned short Data2; unsigned short Data3; unsigned char Data4[ 8 ]; } GUID;
source share