home *** CD-ROM | disk | FTP | other *** search
/ Building OCXs / Building_OCXs_Que_1995.iso / code / ch09 / comm.odl < prev    next >
Encoding:
Microsoft Object Description Language  |  1994-12-14  |  1.7 KB  |  67 lines

  1. // comm.odl : type library source for OLE Custom Control project.
  2.  
  3. // This file will be processed by the Make Type Library (mktyplib) tool to
  4. // produce the type library (comm.tlb) that will become a resource in
  5. // comm.ocx.
  6.  
  7. #include <olectl.h>
  8.  
  9. [ uuid(5B83B083-14F0-11CE-960F-524153480005), version(1.0),
  10.   helpstring("Comm OLE Custom Control module") ]
  11. library CommLib
  12. {
  13.     importlib(STDOLE_TLB);
  14.     importlib(STDTYPE_TLB);
  15.  
  16.     //  Primary dispatch interface for CCommCtrl
  17.  
  18.     [ uuid(5B83B081-14F0-11CE-960F-524153480005),
  19.       helpstring("Dispatch interface for Comm Control") ]
  20.     dispinterface _DComm
  21.     {
  22.         properties:
  23.             // NOTE - ClassWizard will maintain property information here.
  24.             //    Use extreme caution when editing this section.
  25.             //{{AFX_ODL_PROP(CCommCtrl)
  26.             [id(1)] BSTR PhoneNumber;
  27.             //}}AFX_ODL_PROP
  28.  
  29.         methods:
  30.             // NOTE - ClassWizard will maintain method information here.
  31.             //    Use extreme caution when editing this section.
  32.             //{{AFX_ODL_METHOD(CCommCtrl)
  33.             //}}AFX_ODL_METHOD
  34.  
  35.             [id(DISPID_ABOUTBOX)] void AboutBox();
  36.     };
  37.  
  38.     //  Event dispatch interface for CCommCtrl
  39.  
  40.     [ uuid(5B83B082-14F0-11CE-960F-524153480005),
  41.       helpstring("Event interface for Comm Control") ]
  42.     dispinterface _DCommEvents
  43.     {
  44.         properties:
  45.             //  Event interface has no properties
  46.  
  47.         methods:
  48.             // NOTE - ClassWizard will maintain event information here.
  49.             //    Use extreme caution when editing this section.
  50.             //{{AFX_ODL_EVENT(CCommCtrl)
  51.             //}}AFX_ODL_EVENT
  52.     };
  53.  
  54.     //  Class information for CCommCtrl
  55.  
  56.     [ uuid(5B83B080-14F0-11CE-960F-524153480005),
  57.       helpstring("Comm Control") ]
  58.     coclass Comm
  59.     {
  60.         [default] dispinterface _DComm;
  61.         [default, source] dispinterface _DCommEvents;
  62.     };
  63.  
  64.  
  65.     //{{AFX_APPEND_ODL}}
  66. };
  67.