Mood:

Topic: VC++
Do the following...
GUID guId = { 0 };
CoCreateGuid( &guId );
or
UUID uid = { 0 };
UuidCreate( &uid );
To convert to string use...
PUCHAR pChar = 0;
// Convert to string
UuidToString( &uid, &pChar );
MessageBox( NULL, (char*)pChar, NULL, MB_OK );
//Don't forget to free allocated string
RpcStringFree( &pChar );
Posted by Nibu babu thomas
at 3:18 PM