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

📄 ghswatchsystem.idl

📁 VC开发环境下
💻 IDL
字号:
/********************************************************************
	created:	2005/03/27
	created:	27:3:2005   5:09
	filename: 	c:\GeoHazard Project\BCGPAppWizard1\GHSwatchSystem\GHSwatchSystem.idl
	file path:	c:\GeoHazard Project\BCGPAppWizard1\GHSwatchSystem
	file base:	GHSwatchSystem
	file ext:	idl
	author:		matthew
	
	purpose:	

	IGHSwatch: 
	if use a sequence container,just add a method to class CCollectionBase 
		HRESULT Delete(LONG lIndex);
    and add more method to IGHSWatch
		HRESULT CreateRow(IGHRow **pVal);

	if use a list container,use below interface:

*********************************************************************/

// GHSwatchSystem.idl : IDL source for GHSwatchSystem
//

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

cpp_quote("#pragma once")

import "oaidl.idl";
import "ocidl.idl";
import "..\IndexSystem\IndexSystem.idl";

[
	object,
	uuid(015632F2-0328-427A-80CE-87E774C2D874),
	dual,
	nonextensible,
	helpstring("IWorksapce Interface"),
	pointer_default(unique)
]

interface IGHWorksapce : IDispatch
{
};


[
	object,
	uuid(6A37B970-D714-40D7-9785-1BE88C3D9BBE),
	dual,
	nonextensible,
	helpstring("IGHRow Interface"),
	pointer_default(unique)
]
interface IGHRow : IDispatch{
	[propget, id(1), helpstring("property Value")] HRESULT Value([in] LONG lIndex, [out, retval] FLOAT* pVal);
	[propput, id(1), helpstring("property Value")] HRESULT Value([in] LONG lIndex, [in] FLOAT newVal);
	//[propget, id(2), helpstring("property IndexSystem")] HRESULT IndexSystem([out, retval] IIndexs** pVal);
};

[
	object,
	uuid(EF5A2DDC-CF79-4B0E-A1B7-AEC09143DAEB),
	dual,
	nonextensible,
	helpstring("IGHSwatchCursor Interface"),
	pointer_default(unique)
]
interface IGHSwatchCursor : IDispatch{
	[id(1), helpstring("method NextRow")] HRESULT NextRow([out,retval] IGHRow** row);
	[id(2), helpstring("method InsertRow")] HRESULT InsertRow([in] IGHRow* row);
	[id(3), helpstring("method DeleteRow")] HRESULT DeleteRow();
	[id(4), helpstring("method Flush")] HRESULT Flush(void);
	[id(5), helpstring("method Reset")] HRESULT Reset(void);
};

[
	object,
	uuid(F61D2746-4A54-494F-B214-BBE25AD46DBA),
	dual,
	nonextensible,
	helpstring("IGHSwatch Interface"),
	pointer_default(unique)
]
interface IGHSwatch : IDispatch{	
	[propget, id(1), helpstring("property Name")] HRESULT Name([out, retval] BSTR* pVal);
	[propput, id(1), helpstring("property Name")] HRESULT Name([in] BSTR newVal);
	[propget, id(2), helpstring("property Description")] HRESULT Description([out, retval] BSTR* pVal);
	[propput, id(2), helpstring("property Description")] HRESULT Description([in] BSTR newVal);
	[propget, id(3), helpstring("property CreatedDate")] HRESULT CreatedDate([out, retval] DATE* pVal);
	[propget, id(4), helpstring("property IndexSystem")] HRESULT IndexSystem([out, retval] IGHIndexs** pVal);
	[propput, id(4), helpstring("property IndexSystem")] HRESULT IndexSystem([in] IGHIndexs* newVal);
	[propget, id(5), helpstring("property IndexCount")] HRESULT FieldCount([out, retval] LONG* pVal);
	[propget, id(6), helpstring("property RowCount")] HRESULT RowCount([out, retval] LONG* pVal);
	[id(7), helpstring("method CreateRow")] HRESULT CreateRow([out,retval] IGHRow** row);
	[id(8), helpstring("method Search")] HRESULT Search([in] VARIANT_BOOL Recycling, [out,retval] IGHSwatchCursor** cursor);
	[id(9), helpstring("method Update")] HRESULT Update([in] VARIANT_BOOL Recycling, [out,retval] IGHSwatchCursor** cursor);
	[id(10), helpstring("method FindIndex")] HRESULT FindIndex([in] BSTR IndexName,LONG *lIndex);
	[id(11), helpstring("method AddIndex")] HRESULT AddIndex([in] IGHIndex* pVal);
	[id(12), helpstring("method DeleteIndex")] HRESULT DeleteIndex([in] IGHIndex* pVal);
	[propget, id(13), helpstring("property FilePath")] HRESULT FilePath([out, retval] BSTR* pVal);
	[propput, id(13), helpstring("property FilePath")] HRESULT FilePath([in] BSTR newVal);
};

[
	object,
	uuid(8B54D477-0CA0-4a6b-97FD-EA9979A2C8BF),
	dual,
	nonextensible,
	helpstring("IGHSwatchWorksapce Interface"),
	pointer_default(unique)
]
interface IGHSwatchWorkspace: IGHWorksapce
{
	[id(2), helpstring("method Open")] HRESULT Open([in] BSTR bstrFileFullName, [out,retval] IGHSwatch** pGHSwatch);
	[id(3), helpstring("method Save")] HRESULT Save([in] IGHSwatch* pGHSwatch);
	[id(4), helpstring("method SaveAs")] HRESULT SaveAs([in] BSTR bstrFileFullName, [in] IGHSwatch* pGHSwatch);
	[id(5), helpstring("method Create")] HRESULT Create([in] BSTR bstrFileFullName, [in] IGHIndexs* pGHIndexSystem, [out,retval] IGHSwatch** pGHSwatch);
};

[
	uuid(6BF7090E-F25A-43B5-8964-E8163062A7FA),
	version(1.0),
	helpstring("GHSwatchSystem 1.0 Type Library")
]
library GHSwatchSystemLib
{
	importlib("stdole2.tlb");
	[
		uuid(BDB4DFD9-02D6-4616-9850-2FEFCE4E0417),
		helpstring("GHSwatch Class")
	]
	coclass GHSwatch
	{
		[default] interface IGHSwatch;
	};
	[
		uuid(F6F6CC57-1CC4-4B92-926E-58F5E9D13E97),
		helpstring("GHRow Class")
	]
	coclass GHRow
	{
		[default] interface IGHRow;
	};
	[
		uuid(D2BB1726-3801-4940-B162-2A8DFD6A2384),
		helpstring("GHSwatchCursor Class")
	]
	coclass GHSwatchCursor
	{
		[default] interface IGHSwatchCursor;
	};
	[
		uuid(2BD236C2-2F38-49F7-A9C2-C0169F4BB2D6),
		helpstring("SwatchWorksapce Class")
	]
	coclass SwatchWorksapce
	{
		[default] interface IGHSwatchWorkspace;
				  interface IGHWorksapce;
	};
};

⌨️ 快捷键说明

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