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

📄 com_test_idl.idl

📁 数字信号处理的MATLAB实现
💻 IDL
字号:
import "oaidl.idl";
import "ocidl.idl";
import "mwcomtypes.idl";

[
    object,
    uuid("EE365135-B390-40B0-AD8D-E901EFEA4B6F"),
    dual,
    helpstring("Icom_testclass Interface"),
    pointer_default(unique)
]
interface Icom_testclass : IDispatch
{
    [propget, id(1), helpstring("property MWFlags")]
    HRESULT MWFlags([out, retval] IMWFlags** ppvFlags);
    [propput, id(1), helpstring("property MWFlags")]
    HRESULT MWFlags([in] IMWFlags* pvFlags);
    
    [id(2), helpstring("Method plot_test")]
    HRESULT plot_test();

    [id(3), helpstring("Method property_test")]
    HRESULT property_test([in] long nargout, [in,out] VARIANT* result);

        [propget, id(4), helpstring("property A")]
        HRESULT A([out, retval] VARIANT* A);
        [propput, id(4), helpstring("property A")]
        HRESULT A([in] VARIANT A);
    };
[
    uuid("ACE823EF-2AA8-4293-A729-F451C5004EB2"),
    version(1.0),
    helpstring("com_test 1.0 Type Library")
]
library com_test
{
    importlib("stdole32.tlb");
    importlib("stdole2.tlb");
    importlib("mwcomutil.tlb");
    
    [
        uuid("FBEEFDC1-DE19-4F86-9BDA-681A390F8F99"),
        helpstring("_Icom_testclassEvents Interface")
    ]
    dispinterface _Icom_testclassEvents
    {
        properties:
        methods:
        [id(1), helpstring("Method event_test")]
        HRESULT event_test([in] VARIANT i);
    };
    [
        uuid("D42C18E6-CBBF-4B2B-9696-F9CD816892AC"),
        helpstring("com_testclass Class")
    ]
    coclass com_testclass
    {
        [default] interface Icom_testclass;
        [default, source] dispinterface _Icom_testclassEvents;
    };
};

⌨️ 快捷键说明

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