SAMPLE: An ODL File for 16-bit AUTOCLIK Sample

Last reviewed: July 22, 1997
Article ID: Q132959
1.50 1.51 1.52 WINDOWS kbole kbcode

The information in this article applies to:

  • The Microsoft Foundation Classes (MFC) included with: Microsoft Visual C++ for Windows, versions 1.5, 1.51, 1.52

SUMMARY

An ODL file is not included with the 16-bit AUTOCLIK sample. Under certain circumstances, you may find it convenient to have one. Copy the following code into AUTOCLIK.ODL in the AUTOCLIK sample project directory. Then use the MKTYPLIB tool to compile it.

MORE INFORMATION

Sample Code

// autoclik.odl : type library source for autoclik.exe
// This file will be processed by the Make Type Library (mktyplib) tool to
// produce the type library (autoclik.tlb).

[ uuid(2106e719-aef8-101a-9005-00dd0108d651), version(1.0) ] library Autoclik {
  importlib("stdole.tlb");

  //  Primary dispatch interface for CClikDoc
  [ uuid(2106e720-aef8-101a-9005-00dd0108d651) ]
  dispinterface IACLIK
  {
    properties:
      [id(1)] BSTR text;
      [id(4)] short x;
      [id(5)] short y;
      [id(7)] IDispatch* Position;

    methods:
      [id(2)] void RefreshWindow();
      [id(3)] void SetAllProps(short x, short y, BSTR text);
      [id(6)] void ShowWindow();
  };

  //  Class information for CClikDoc
  [ uuid(2106e721-aef8-101a-9005-00dd0108d651) ]
  coclass CClikDoc
  {
    [default] dispinterface IACLIK;
  };

  //  Primary dispatch interface for CClikPoint
  [ uuid(2106e722-aef8-101a-9005-00dd0108d651) ]
  dispinterface IClikPoint
  {
    properties:
      [id(1)] short x;
      [id(2)] short y;

    methods:
  };

  //  Class information for CClikPoint
  [ uuid(2106e723-aef8-101a-9005-00dd0108d651) ]
  coclass CClikPoint
  {
    [default] dispinterface IClikPoint;
  };
};


Additional reference words: kbinf 1.50 2.50 1.51 2.51 1.52 2.52
KBCategory: kbole kbcode
KBSubcategory: MfcOLE
Keywords : kb16bitonly
Technology : kbMfc


THE INFORMATION PROVIDED IN THE MICROSOFT KNOWLEDGE BASE IS PROVIDED "AS IS" WITHOUT WARRANTY OF ANY KIND. MICROSOFT DISCLAIMS ALL WARRANTIES, EITHER EXPRESS OR IMPLIED, INCLUDING THE WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. IN NO EVENT SHALL MICROSOFT CORPORATION OR ITS SUPPLIERS BE LIABLE FOR ANY DAMAGES WHATSOEVER INCLUDING DIRECT, INDIRECT, INCIDENTAL, CONSEQUENTIAL, LOSS OF BUSINESS PROFITS OR SPECIAL DAMAGES, EVEN IF MICROSOFT CORPORATION OR ITS SUPPLIERS HAVE BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES. SOME STATES DO NOT ALLOW THE EXCLUSION OR LIMITATION OF LIABILITY FOR CONSEQUENTIAL OR INCIDENTAL DAMAGES SO THE FOREGOING LIMITATION MAY NOT APPLY.

Last reviewed: July 22, 1997
© 1998 Microsoft Corporation. All rights reserved. Terms of Use.