컴포넌트(COM)/Containment
-
ATL로 Containment 구현하기컴포넌트(COM)/Containment 2008. 11. 26. 23:33
import "oaidl.idl"; import "ocidl.idl"; [ object, uuid(7059A459-EAA6-497E-9459-2AD61676A1AB), dual, helpstring("IRadius Interface"), pointer_default(unique) ] interface IRadius : IDispatch { [id(1), helpstring("method Radius")] HRESULT Radius([in] int x, [in] int y, [out, retval] double *z); }; [ object, uuid(1F37A7CC-582F-4A1D-9316-AE95F03E6860), dual, helpstring("ISimpleCalc Interface"), point..
-
C++ 로 Containment 구현하기컴포넌트(COM)/Containment 2008. 11. 26. 21:31
#include interface ICalcu : IUnknown { virtual int __stdcall Sum(int x, int y) = 0; virtual int __stdcall Sub(int x, int y) = 0; virtual int __stdcall Mul(int x, int y) = 0; virtual double __stdcall Div(int x, int y) = 0; }; interface IRadius : IUnknown { virtual double __stdcall Radius(int x, int y) = 0; }; HRESULT __stdcall CFactory::CreateInstance(IUnknown* pUnknownOuter, const IID& iid, void..