home *** CD-ROM | disk | FTP | other *** search
/ Tricks of the Windows Gam…ming Gurus (2nd Edition) / Disc2.iso / msdn_vcb / samples / vc98 / mfc / ole / tstcon / tstcon.odl < prev    next >
Encoding:
Microsoft Object Description Language  |  1998-03-27  |  1.5 KB  |  55 lines

  1. // TestContainer98.odl : type library source for TestContainer98.exe
  2.  
  3. // This file will be processed by the MIDL compiler to produce the
  4. // type library (TestContainer98.tlb).
  5.  
  6. [ uuid(198184FB-B837-11D0-8DF1-00C04FB68D60), version(1.0) ]
  7. library TestContainer98
  8. {
  9.     importlib( "stdole32.tlb" );
  10.     
  11.     //  Primary dispatch interface for CTestContainer98Doc
  12.     
  13.     [ uuid(198184FC-B837-11D0-8DF1-00C04FB68D60) ]
  14.     dispinterface ITestContainer98
  15.     {
  16.         properties:
  17.             // NOTE - ClassWizard will maintain property information here.
  18.             //    Use extreme caution when editing this section.
  19.             //{{AFX_ODL_PROP(CTestContainer98Doc)
  20.             [id(1)] IDispatch* PrimarySelection;
  21.             //}}AFX_ODL_PROP
  22.             
  23.         methods:
  24.             // NOTE - ClassWizard will maintain method information here.
  25.             //    Use extreme caution when editing this section.
  26.             //{{AFX_ODL_METHOD(CTestContainer98Doc)
  27.             [id(2)] IDispatch* FindControl(BSTR pszName);
  28.             [id(3)] void Log(BSTR pszMessage);
  29.             [id(4)] IDispatch* InsertControl(BSTR pszProgID, BSTR pszName);
  30.             //}}AFX_ODL_METHOD
  31.  
  32.     };
  33.  
  34.    [ uuid( CC6568DE-0EAF-11d1-8E2F-00C04FB68D60 ) ]
  35.    dispinterface ITestContainer98Events
  36.    {
  37.    properties:
  38.  
  39.    methods:
  40.       [id(1)] void OnNewControl( IDispatch* pControl );
  41.    };
  42.  
  43.     //  Class information for CTestContainer98Doc
  44.     
  45.     [ uuid(198184FA-B837-11D0-8DF1-00C04FB68D60) ]
  46.     coclass Document
  47.     {
  48.         [default] dispinterface ITestContainer98;
  49.       [default, source] dispinterface ITestContainer98Events;
  50.     };
  51.  
  52.     //{{AFX_APPEND_ODL}}
  53.     //}}AFX_APPEND_ODL}}
  54. };
  55.