home *** CD-ROM | disk | FTP | other *** search
/ Mastering MFC Development / MMD.ISO / samples / c12 / simpledual / simple.odl < prev    next >
Encoding:
Microsoft Object Description Language  |  1997-02-20  |  1.5 KB  |  63 lines

  1. // Simple.odl : type library source for ActiveX Control project.
  2.  
  3. #include <olectl.h>
  4. #include <idispids.h>
  5.  
  6. [ uuid(C48A81E0-4384-11D0-9C9D-000000000000), version(1.0),
  7.   helpfile("Simple.hlp"),
  8.   helpstring("Simple ActiveX Control module"),
  9.   control ]
  10. library SIMPLELib
  11. {
  12.     importlib(STDOLE_TLB);
  13.     importlib(STDTYPE_TLB);
  14.  
  15.     [ uuid(C48A81E1-4384-11D0-9C9D-000000000000),
  16.       helpstring("Dispatch interface for Simple Control"), hidden ]
  17.     dispinterface _DSimple
  18.     {
  19.         properties:
  20.             //{{AFX_ODL_PROP(CSimpleCtrl)
  21.             [id(1)] long P1;
  22.             //}}AFX_ODL_PROP
  23.  
  24.         methods:
  25.             //{{AFX_ODL_METHOD(CSimpleCtrl)
  26.             [id(2)] void M1();
  27.             //}}AFX_ODL_METHOD
  28.     };
  29.  
  30.     [ uuid(C48A81E2-4384-11D0-9C9D-000000000000),
  31.       helpstring("Event interface for Simple Control") ]
  32.     dispinterface _DSimpleEvents
  33.     {
  34.         properties:
  35.             //  Event interface has no properties
  36.  
  37.         methods:
  38.             //{{AFX_ODL_EVENT(CSimpleCtrl)
  39.             [id(1)] void E1();
  40.             //}}AFX_ODL_EVENT
  41.     };
  42.  
  43.     [ uuid(26A30A20-42D9-11d0-9C9D-000000000000), oleautomation, dual]
  44.     interface _DSimpleDual : IDispatch
  45.     {
  46.         [propput, id(1)] HRESULT P1([in] long newValue);
  47.         [propget, id(1)] HRESULT P1([out, retval] long* retval);
  48.         [id(2)] HRESULT M1();
  49.     };
  50.  
  51.     [ uuid(C48A81E3-4384-11D0-9C9D-000000000000),
  52.       helpstring("Simple Control"), control ]
  53.     coclass Simple
  54.     {
  55.         dispinterface _DSimple;
  56.         [default] interface _DSimpleDual;
  57.         [default, source] dispinterface _DSimpleEvents;
  58.     };
  59.  
  60.  
  61.     //{{AFX_APPEND_ODL}}
  62. };
  63.