MINSVR: Demonstrates a Minimal OLE Server Application
MINSVR is a simple object linking and embedding (OLE) server application that draws a graphical ellipse. You must run MINSRV directly before using it with other OLE programs. When you run MINSVR directly (from the Windows Program Manager or File Manager), it registers itself with the registration database. After running MINSVR directly, you can use it with OLE clients to embed objects in the client application's document.
The MINSVR source code illustrates the following concepts:
Constructing a minimal OLE server
Programming with the MFC OLE classes
Supporting embedded objects
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."
MINSVR requires special MFC libraries and include files; see the "MFC Libraries" and "MFC Include Files" abstracts to copy these files to your development system. MINSVR 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)
OLESVR.DLL and OLESVR.LIB (OLE server 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 minsvr project." /C"samples}