取得COM对象的UUID并以string输出 IID tmp = __uuidof(ClassLibrary1::Class1); OLECHAR * buf; StringFromIID(tmp, &buf); 好像要#include <Windows.h>