Share via


OLE Samples

The AUTOCLIK sample is an application that supports Automation (formerly OLE Automation).

CONTAINER is an ActiveX Visual Editing container application.

SCRIBBLE shows an ActiveX Visual Editing server application.

The TSTCON sample implements an ActiveX control container using MFC's support for OLE embedding. You can use TSTCON to test ActiveX controls, change their properties, and invoke their methods.

The following samples illustrate additional MFC OLE programming techniques:

  • ACDUAL demonstrates how to add dual interface support to an MFC-based Automation server application.
  • AUTOCLIK is a combination ActiveX Visual Editing server and Automation server. It includes the former separate AUTODRIV sample. AUTODRIV is a simple Automation client application that drives the AUTOCLIK sample application. AUTODRIV is also a good demonstration of how to write an Automation driver application.
  • BINDSCRB illustrates the use of new Component Object Model (COM) interfaces to components currently supported by the Microsoft Office suite of products.
  • CALCDRIV is an Automation (formerly OLE Automation) client application. CALCDRIV drives the MFCCALC sample application, which is an Automation server that provides basic calculator functions and is one of the OLE Software Development Kit samples. MFCCALC has a simple calculator interface that looks like the Calculator application that comes with Microsoft Windows®.
  • DRAWCLI is a full-featured object-oriented drawing application with ActiveX Visual Editing container support. DRAWCLI provides the best illustration of integrating container support with application-specific features — in this case, drawing features. In addition, DRAWCLI demonstrates effective use of C++ object-oriented programming in the design of its "shape" and "drawing tool" classes.
  • GUIDGEN is a simple dialog-based MFC application that can be used to generate globally unique identifiers, or GUIDs, which identify OLE classes, objects, and interfaces.
  • HIERSVR is an ActiveX Visual Editing server application. HIERSVR also uses MFC OLE support for the Clipboard and for drag and drop.
  • INPROC is an in-process Automation server. Unlike the other Automation server samples provided, INPROC can be loaded as a DLL in the client's address space.
  • IPDRIVE is a simple Automation client application that drives the INPROC sample application. IPDRIVE can drive both the in-process version of INPROC as well as the EXE-based or local server version of INPROC, demonstrating the performance advantages of in-process servers.
  • MFCCALC is an Automation server that implements a simple calculator. It can be driven via Automation with the CALCDRIV sample or run stand-alone.
  • MFCBIND shows how to create an ActiveX document (formerly known as a DocObject) container using the ActiveX document container support classes.
  • OCLIENT is an ActiveX Visual Editing container application. It is essentially an extended version of the CONTAINER sample, which illustrates drag and drop, automatic scrolling during drag-and-drop operations, and Edit Paste Link.
  • SUPERPAD is an ActiveX Visual Editing server application that edits and saves text using the CEditView class.
  • VariantUse demonstrates changing existing data into a variant and changing a variant into other types of data.

See Also

MFC Samples | Categorical List of MFC Samples