DemoVariant.idl
上传用户:weisheen
上传日期:2022-07-09
资源大小:19390k
文件大小:1k
源码类别:
ActiveX/DCOM/ATL
开发平台:
Visual C++
- // DemoVariant.idl : IDL source for DemoVariant.dll
- //
- // This file will be processed by the MIDL tool to
- // produce the type library (DemoVariant.tlb) and marshalling code.
- import "oaidl.idl";
- import "ocidl.idl";
- [
- object,
- uuid(653ECC4B-F61E-49B7-BF83-6D1740C943F4),
- dual,
- helpstring("IMyVariant Interface"),
- pointer_default(unique)
- ]
- interface IMyVariant : IDispatch
- {
- [id(1), helpstring("method add")] HRESULT add([in] VARIANT a, [in] VARIANT b, [out] VARIANT* c);
- };
- [
- uuid(4A124107-0441-4718-88CD-310B12706055),
- version(1.0),
- helpstring("DemoVariant 1.0 Type Library")
- ]
- library DEMOVARIANTLib
- {
- importlib("stdole32.tlb");
- importlib("stdole2.tlb");
- [
- uuid(2F6A04F7-D42A-4E7B-93F1-45BF7683CEEF),
- helpstring("MyVariant Class")
- ]
- coclass MyVariant
- {
- [default] interface IMyVariant;
- };
- };