⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 myinterface.h

📁 Visual_C++.NET精彩案例237.rar
💻 H
字号:

// sample interface 
// myInterface.h 
//
// this file wil be required by the client as it contains the GUID and the interface definition
//

#include <ComDef.h>

// GUID of our COM server
_declspec(selectany) GUID CLSID_Mine = { 0xdc186800,
						  0x657f,
						  0x11d4, 
						  {	0xb0, 0xb5,  0x0,  0x50,  0xba,  0xbf,  0xc9,  0x4 	}
						};

// interface definition
// for sample COM server just replace the uuid of interface and its name
// and add new method prototypes here ..
// 
interface __declspec(uuid("F614FB00-6702-11d4-B0B7-0050BABFC904")) ImyInterface : public IUnknown
{
	STDMETHOD(Square)(long *pVal)PURE;
	STDMETHOD(Cube)(long *pVal)PURE;
};

⌨️ 快捷键说明

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