0
I have a GUID variable and I want to write inside a text file its value. GUID definition is: [code] typedef struct _GUID { // size is 16 DWORD Data1; WORD Data2; WORD Data3; BYTE Data4[8]; } GUID; [/code] But I want to write its value like: [code] CA04046D-0000-0000-0000-504944564944 [/code] I observed that:
  1. Data1 holds the decimal value for CA04046D
  2. Data2 holds the decimal value for 0
  3. Data3 holds the decimal value for next 0
But what about the others? I have to interpret myself this values in order to get that output or is there a more direct method to print such a variable?