testocx.odl

来自「java中实现jni调用,jni调用dll ,dll再调用dll ,dll显示调」· ODL 代码 · 共 71 行

ODL
71
字号
// testOCX.odl : type library source for ActiveX Control project.

// This file will be processed by the Make Type Library (mktyplib) tool to
// produce the type library (testOCX.tlb) that will become a resource in
// testOCX.ocx.

#include <olectl.h>
#include <idispids.h>

[ uuid(9B6123BD-A1AA-455A-989D-540BEB9F4E06), version(1.0),
  helpfile("testOCX.hlp"),
  helpstring("testOCX ActiveX Control module"),
  control ]
library TESTOCXLib
{
	importlib(STDOLE_TLB);
	importlib(STDTYPE_TLB);

	//  Primary dispatch interface for CTestOCXCtrl

	[ uuid(8578973D-51A5-4252-8FC4-16C8392FCCC3),
	  helpstring("Dispatch interface for TestOCX Control"), hidden ]
	dispinterface _DTestOCX
	{
		properties:
			// NOTE - ClassWizard will maintain property information here.
			//    Use extreme caution when editing this section.
			//{{AFX_ODL_PROP(CTestOCXCtrl)
			//}}AFX_ODL_PROP

		methods:
			// NOTE - ClassWizard will maintain method information here.
			//    Use extreme caution when editing this section.
			//{{AFX_ODL_METHOD(CTestOCXCtrl)
			[id(1)] short getShort();
			//}}AFX_ODL_METHOD

			[id(DISPID_ABOUTBOX)] void AboutBox();
	};

	//  Event dispatch interface for CTestOCXCtrl

	[ uuid(23C6A444-3E3C-447A-9937-0C9DB4336581),
	  helpstring("Event interface for TestOCX Control") ]
	dispinterface _DTestOCXEvents
	{
		properties:
			//  Event interface has no properties

		methods:
			// NOTE - ClassWizard will maintain event information here.
			//    Use extreme caution when editing this section.
			//{{AFX_ODL_EVENT(CTestOCXCtrl)
			//}}AFX_ODL_EVENT
	};

	//  Class information for CTestOCXCtrl

	[ uuid(ED52CFFF-55EF-4894-BEC3-5705CA7BAA06),
	  helpstring("TestOCX Control"), control ]
	coclass TestOCX
	{
		[default] dispinterface _DTestOCX;
		[default, source] dispinterface _DTestOCXEvents;
	};


	//{{AFX_APPEND_ODL}}
	//}}AFX_APPEND_ODL}}
};

⌨️ 快捷键说明

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