windows-nt/Source/XPSP1/NT/com/oleutest/simpsvr
2020-09-26 16:20:57 +08:00
..
chicago Add source files 2020-09-26 16:20:57 +08:00
daytona Add source files 2020-09-26 16:20:57 +08:00
app.cpp Add source files 2020-09-26 16:20:57 +08:00
app.h Add source files 2020-09-26 16:20:57 +08:00
bang.ico Add source files 2020-09-26 16:20:57 +08:00
debug.log Add source files 2020-09-26 16:20:57 +08:00
default.ico Add source files 2020-09-26 16:20:57 +08:00
depend.mk Add source files 2020-09-26 16:20:57 +08:00
dirs Add source files 2020-09-26 16:20:57 +08:00
doc.cpp Add source files 2020-09-26 16:20:57 +08:00
doc.h Add source files 2020-09-26 16:20:57 +08:00
filelist.mk Add source files 2020-09-26 16:20:57 +08:00
icf.cpp Add source files 2020-09-26 16:20:57 +08:00
icf.h Add source files 2020-09-26 16:20:57 +08:00
ido.cpp Add source files 2020-09-26 16:20:57 +08:00
ido.h Add source files 2020-09-26 16:20:57 +08:00
iec.cpp Add source files 2020-09-26 16:20:57 +08:00
iec.h Add source files 2020-09-26 16:20:57 +08:00
ioipao.cpp Add source files 2020-09-26 16:20:57 +08:00
ioipao.h Add source files 2020-09-26 16:20:57 +08:00
ioipo.cpp Add source files 2020-09-26 16:20:57 +08:00
ioipo.h Add source files 2020-09-26 16:20:57 +08:00
ioo.cpp Add source files 2020-09-26 16:20:57 +08:00
ioo.h Add source files 2020-09-26 16:20:57 +08:00
ips.cpp Add source files 2020-09-26 16:20:57 +08:00
ips.h Add source files 2020-09-26 16:20:57 +08:00
makefile Add source files 2020-09-26 16:20:57 +08:00
makefile.new Add source files 2020-09-26 16:20:57 +08:00
obj.cpp Add source files 2020-09-26 16:20:57 +08:00
obj.h Add source files 2020-09-26 16:20:57 +08:00
pre.cpp Add source files 2020-09-26 16:20:57 +08:00
pre.h Add source files 2020-09-26 16:20:57 +08:00
readme.txt Add source files 2020-09-26 16:20:57 +08:00
resource.h Add source files 2020-09-26 16:20:57 +08:00
simpsvr.cpp Add source files 2020-09-26 16:20:57 +08:00
simpsvr.def Add source files 2020-09-26 16:20:57 +08:00
simpsvr.h Add source files 2020-09-26 16:20:57 +08:00
simpsvr.ico Add source files 2020-09-26 16:20:57 +08:00
simpsvr.mak Add source files 2020-09-26 16:20:57 +08:00
simpsvr.prj Add source files 2020-09-26 16:20:57 +08:00
simpsvr.rc Add source files 2020-09-26 16:20:57 +08:00
strings.rc Add source files 2020-09-26 16:20:57 +08:00

This file contains invisible Unicode characters

This file contains invisible Unicode characters that are indistinguishable to humans but may be processed differently by a computer. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

Simpsvr
--------
This sample is the simplest OLE 2.0 object that can be written and
still support the visual editing feature.  The object that this server
supports is a colored square with a black border.

See the MAKEFILE for compilation instructions.


Simple Server Objects Overview
------------------------------
Simple server consists of three main objects. The top level is CSimpSvrApp,
under which is CSimpSvrDoc, and the innermost level is CSimpSvrObj.CSimpSvrApp
is used to hold all the main window information. (eg. handle to the main
window, handles to the main, color, and help menus and the application
instance) Therefore, CSimpSvrApp always exists as long as the simple server
application is alive. The CSimpSvrApp instantiates the Class Factory, if
simple server is started as embedding. (ie. started by OLE) The next level
object is CSimpSvrDoc object. It is instantiated by the time CSimpSvrApp is
created. It manipulates the document window and also the hatch window.
(See OLE2UI for detail on the hatch window) The CSimpSvrObj, the innermost
simple server object, shows six OLE interfaces implementations in its nested
classes. The six OLE interfaces demonstrated are IOleObject, IPersistStorage,
IDataObject,IOleInPlaceActiveObject,IOleInPlaceObject,and IExternalConnection.
These six interfaces are implemented as different classes namely: COleObject,
CPersistStorage, CDataObject, COleInPlaceActiveObject, COleInPlaceObject,
and CExternalConnection. The CSimpSvrObj handles the drawing of the object
and all the OLE connections between the container and the server.