非常急的COM组件问题,帮帮忙呀!!!
一个组件输出两个接口如Interface1、Interface2,一个申明
类GUID和接口GUID的头文件GUIDs.h,该头文件如下:
static const IID CLSID_MyClass = //这是类GUID
{0xa433e701, 0xe45e, 0x11d3, {0x97, 0xb5, 0x52, 0x54, 0x4c, 0xba, 0x7f, 0x28}};
static const IID IID_IMyInterface1 = //这是Interface1的GUID
{0xa433e702, 0xe45e, 0x11d3, {0x97, 0xb5, 0x52, 0x54, 0x4c, 0xba, 0x7f, 0x28}};
static const IID IID_IMyInterface2 = //这是Interface2的GUID
{0xa433e703, 0xe45e, 0x11d3, {0x97, 0xb5, 0x52, 0x54, 0x4c, 0xba, 0x7f, 0x28}};
在Interface1中:
#include "GUIDs.h"正常,
但在Interface2中:
#include "GUIDs.h"却告知上面三项重复定义,但我必需要在两个接口中都包含
该GUIDs.h呀,该怎么2办?