ExEquation.idl
上传用户:weisheen
上传日期:2022-07-09
资源大小:19390k
文件大小:1k
源码类别:
ActiveX/DCOM/ATL
开发平台:
Visual C++
- // ExEquation.idl : IDL source for ExEquation.dll
- //
- // This file will be processed by the MIDL tool to
- // produce the type library (ExEquation.tlb) and marshalling code.
- import "oaidl.idl";
- import "ocidl.idl";
- typedef struct Root
- {
- float r1;
- float r2;
- }Root;
- typedef struct Equation
- {
- int a;
- int b;
- int c;
- }Equation;
- [
- object,
- uuid(DFE2965A-2A7E-4216-91C4-F3877B81FE72),
- dual,
- helpstring("IMyEquation Interface"),
- pointer_default(unique)
- ]
- interface IMyEquation : IDispatch
- {
- [id(1),helpstring("asdf")] HRESULT solve([in] Equation* equ,[out] Root** roots);
- };
- [
- uuid(CB653878-EF99-4CC4-8138-8E2ECFE405E8),
- version(1.0),
- helpstring("ExEquation 1.0 Type Library")
- ]
- library EXEQUATIONLib
- {
- importlib("stdole32.tlb");
- importlib("stdole2.tlb");
- [
- uuid(577B4F62-F3E4-4122-8BC6-50AA7D64DAA0),
- helpstring("MyEquation Class")
- ]
- coclass MyEquation
- {
- [default] interface IMyEquation;
- };
- };