aggregate.idl

来自「《DCOM入门》随书源码 Chapter 1 (Distributed Com」· IDL 代码 · 共 35 行

IDL
35
字号
//*******************************************************************
//**  GUIDs are generated from guidgen.exe
//*******************************************************************

//*******************************************************************
//** Include the specification of the IUnknown interface
//*******************************************************************
import "unknwn.idl";

//*******************************************************************
//**  IThesaurus which delegates its method to the inner object
//*******************************************************************
[ object, uuid(A0F35540-C5C1-11d1-9150-006008052F2D) ]
interface IThesaurus : IUnknown
{
    HRESULT LookUp();
}


// notice you don't have to have specify library and coclass
// if you don't want to create a typelibary

//*******************************************************************
//**  Spit out the class ID in the generated header file
//*******************************************************************
// {A0F3554A-C5C1-11d1-9150-006008052F2D}
cpp_quote("DEFINE_GUID(CLSID_Thesaurus, 0xa0f3554a, 0xc5c1, 0x11d1, 0x91, 0x50, 0x0, 0x60, 0x8, 0x5, 0x2f, 0x2d);")

//*******************************************************************
//**  Spit out IID_IThesaurus in the generated header file
//*******************************************************************
// {A0F35540-C5C1-11d1-9150-006008052F2D}
cpp_quote("DEFINE_GUID(IID_IThesaurus, 0xa0f35540, 0xc5c1, 0x11d1, 0x91, 0x50, 0x0, 0x60, 0x8, 0x5, 0x2f, 0x2d);")

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?