首页 > 代码库 > GUID 转 char *

GUID 转 char *

 1     char pSubKey[MAX_PATH] = {0}; 2     sprintf(pSubKey,  3         "CLSID\\{%08X-%04X-%04X-%02X%02X-%02X%02X%02X%02X%02X%02X}\\InprocServer32",  4         IID_CMathStringFactory.Data1, 5         IID_CMathStringFactory.Data2, 6         IID_CMathStringFactory.Data3, 7         IID_CMathStringFactory.Data4[0],  8         IID_CMathStringFactory.Data4[1],    9         IID_CMathStringFactory.Data4[2], 10         IID_CMathStringFactory.Data4[3], 11         IID_CMathStringFactory.Data4[4], 12         IID_CMathStringFactory.Data4[5], 13         IID_CMathStringFactory.Data4[6], 14         IID_CMathStringFactory.Data4[7]);

 

GUID 转 char *