- Код: Выделить всё
[
uuid(133A366D-A5A7-46F6-96D8-2CC9340CC24D),
version(1.0),
helpstring("WinRAR archiver")
]
library WinRARLib
{
// TLib : // TLib : OLE Automation : {00020430-0000-0000-C000-000000000046}
importlib("stdole32.tlb");
// Forward declare all types defined in this typelib
interface IRAR;
interface IRAR2;
[
odl,
uuid(B466BC13-558B-4A20-96DA-2C5D267C59F8),
helpstring("IRAR is a custom interface for Direct VTable access."),
nonextensible
]
interface IRAR : IUnknown {
long _stdcall CommandLine([in] BSTR PARAM);
long _stdcall Compress(
[in] BSTR PATH,
[in] BSTR ARCHPATH,
[in] BSTR PASSWORD,
[in] BSTR LEVEL);
};
[
odl,
uuid(C3F05E0E-31FA-46A3-B161-B9631D387C62),
helpstring("IRAR2 is a custom interface for Direct VTable access."),
nonextensible
]
interface IRAR2 : IUnknown {
BSTR _stdcall CommandLine2([in] BSTR P1);
};
[
uuid(81B46121-5C65-4C0A-AB56-D04A83A32FD3)
]
coclass PACK {
[default] interface IRAR;
};
[
uuid(B9562174-75F9-4C67-BEB3-4232D79425EB)
]
coclass UNPACK {
[default] interface IRAR2;
};
};
При попытке компиляции: MIDL.EXE FILE.IDL выдается ошибка:
Microsoft (R) 32b/64b MIDL Compiler Version 6.00.0366
Copyright (c) Microsoft Corporation 1991-2002. All rights reserved.
midl : error MIDL2398 : cannot execute MIDL engine
Не могу, понять, что за фигня такая