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

📄 cxgps.idl

📁 使用com开发的一个GPRS组件
💻 IDL
字号:
// CXGPS.idl : IDL source for CXGPS.dll
//

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

import "oaidl.idl";
import "ocidl.idl";
#include "olectl.h"
	

	[
		object,
		uuid(2EB5D478-CF98-4714-BC2B-B210B64D3B6D),
		dual,
		helpstring("IGPS Interface"),
		pointer_default(unique)
	]
	interface IGPS : IDispatch
	{
		[propget, id(1), helpstring("property config")] HRESULT config([out, retval] VARIANT *pVal);
		[propput, id(1), helpstring("property config")] HRESULT config([in] VARIANT newVal);
		[propget, id(2), helpstring("property Run")] HRESULT Run([out, retval] BOOL *pVal);
		[propput, id(2), helpstring("property Run")] HRESULT Run([in] BOOL newVal);
		[propget, id(3), helpstring("property dfLong")] HRESULT dfLong([out, retval] double *pVal);
		[propget, id(4), helpstring("property dfLat")] HRESULT dfLat([out, retval] double *pVal);
		[propget, id(5), helpstring("property clsid")] HRESULT clsid([out, retval] GUID *pVal);
		[propget, id(6), helpstring("property Name")] HRESULT Name([out, retval] BSTR *pVal);
		[propget, id(7), helpstring("property ServerClsid")] HRESULT ServerClsid([out, retval] GUID *pVal);
		[id(8), helpstring("method ShowConfigDlg")] HRESULT ShowConfigDlg();
	};

[
	uuid(3E77F9A5-1A18-449A-A8EE-D1A515DEB4E5),
	version(1.0),
	helpstring("CXGPS 1.0 Type Library")
]
library CXGPSLib
{
	importlib("stdole32.tlb");
	importlib("stdole2.tlb");

	[
		uuid(F206555D-5089-4052-80B7-DAF711A8F435),
		helpstring("_IGPSEvents Interface")
	]
	dispinterface _IGPSEvents
	{
		properties:
		methods:
		[id(1), helpstring("method DataReceive")] HRESULT DataReceive([in]double dfLong,[in]double dfLat);
		[id(2), helpstring("method ErrorMsg")] HRESULT ErrorMsg([in]BSTR bstrMSG);
	};

	[
		uuid(6EE80CE0-27B3-4B77-A75C-EE4132ACD3E2),
		helpstring("GPS Class")
	]
	coclass GPS
	{
		[default] interface IGPS;
		[default, source] dispinterface _IGPSEvents;
	};
};

⌨️ 快捷键说明

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