myceserver.idl

来自「《Windows CE 权威指南》(作者:(美)CHRIS MUENCH」· IDL 代码 · 共 42 行

IDL
42
字号
// MyCeServer.idl : IDL source for MyCeServer.dll
//

// This file will be processed by the MIDL tool to
// produce the type library (MyCeServer.tlb) and marshalling code.

import "oaidl.idl";
import "ocidl.idl";
	[
		object,
		uuid(85093D3C-B3BE-4F38-AEAD-521AADCA2498),
		dual,
		helpstring("ITestMe Interface"),
		pointer_default(unique)
	]
	interface ITestMe : IDispatch
	{
		[id(1), helpstring("method ShowMe")] HRESULT ShowMe([out,retval]short *nVal);
		[propget, id(2), helpstring("property AboutText")] HRESULT AboutText([out, retval] BSTR *pVal);
		[propput, id(2), helpstring("property AboutText")] HRESULT AboutText([in] BSTR newVal);
	};

[
	uuid(E792771A-DD86-489F-842A-35304CC379AB),
	version(1.0),
	helpstring("MyCeServer 1.0 Type Library")
]
library MYCESERVERLib
{
	importlib("stdole32.tlb");
	importlib("stdole2.tlb");

	[
		uuid(B1D58504-A803-450C-B502-3CBA0CB7F86E),
		helpstring("TestMe Class")
	]
	coclass TestMe
	{
		[default] interface ITestMe;
	};
};

⌨️ 快捷键说明

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