Re: How to create automation project with ATL
 
On Nov 5, 10:50 pm, "Brian Muth" <bm...@mvps.org> wrote:
Javascript does not support the full range of automation features.
Show your IDL, and probably someone can spot what you are doing wrong.
Here is the idl
import "oaidl.idl";
import "ocidl.idl";
    [
        object,
        uuid(CFD7B1D2-2DE0-4229-82BE-D00AA271158A),
        dual,
        helpstring("IArithemetic Interface"),
        pointer_default(unique)
    ]
    interface IArithemetic : IDispatch
    {
        [id(1), helpstring("method Sum")] HRESULT Sum([in] long X, [in] long
Y, [out,retval] long *Result);
        [id(2), helpstring("method Product")] HRESULT Product([in] long X,
[in] long Y, [out,retval] long *Result);
    };
    [
        object,
        uuid(B19B0029-3544-4a62-8629-1C0BB545EFB3),
        dual,
        helpstring("IComapre Interface"),
        pointer_default(unique)
    ]
    interface ICompare : IDispatch
    {
        [id(1), helpstring("method Sum")] HRESULT Sum([in] long X, [in] long
Y, [out,retval] long *Result);
        [id(2), helpstring("method Max")] HRESULT Max([in] long X, [in] long
Y, [out,retval] long *Result);
    };
[
    uuid(CE1AEB2E-94DD-481D-BE3A-E11243EBB13B),
    version(1.0),
    helpstring("Maths 1.0 Type Library")
]
library MATHSLib
{
    importlib("stdole32.tlb");
    importlib("stdole2.tlb");
    [
        uuid(56333924-493D-4009-BC68-3A6FE8B4CC9A),
        helpstring("Math Class")
    ]
    coclass Math
    {
        [default] interface IArithemetic;
        interface ICompare;
    };
};