OCLIENT: Demonstrates OLE Client
OCLIENT is a simple object linking and embedding (OLE) client application that uses the Microsoft(R) Foundation Class (MFC) library OLE classes. OCLIENT is a port of the OLEDEMOC program that is included in the Microsoft OLE Software Development Kit (SDK).
OCLIENT lets you insert both embedded and linked objects into a document. You can perform file and clipboard operations on the objects and activate the servers that own the objects.
The OCLIENT source code illustrates the following concepts:
OLE client programming using MFC
Inserting embedded objects into a client application
Pasting linked and embedded objects into a client application
Copying objects to the Clipboard
Loading and saving objects to and from disk
For more information on these concepts, see the technical articles "MFC TN008--General OLE Overview," "MFC TN009--Writing an OLE Client Application," and "MFC TN010--Writing an OLE Server Application."
OCLIENT requires special MFC libraries and include files; see the "MFC Libraries" and "MFC Include Files" abstracts to copy these files to your development system. OCLIENT uses the following libraries:
MLIBCEW.LIB (C Windows run-time library)
LIBW.LIB (Windows library)
Either MAFXCW.LIB (MFC medium-model Windows retail library) or MAFXCWD.LIB (MFC medium-model Windows debug library)
COMMDLG.DLL and COMMDLG.LIB (standard Windows dialog libraries)
SHELL.DLL and SHELL.LIB (OLE registration libraries)
OLECLI.DLL and OLECLI.LIB (OLE client libraries)
To build this application, you must have Microsoft C/C++ version 7.0 installed on your system.
{ewc navigate.dll, ewbutton, /Bcodeview /T"Click to open or copy files in the oclient project." /C"samples}