SRVRDEMO: lllustrates an OLE Server Application
SRVRDEMO is a sample object linking and embedding (OLE) server application that works with the CLIDEMO sample client application to demonstrate the use of OLECLI.DLL and OLESRV.DLL.
To use SRVRDEMO, you must register it in the system registration database. (An OLE server usually registers itself during setup or initialization, but SRVRDEMO does not.) To register SRVRDEMO, choose the Run command from the Program Manager File menu and type:
REGEDIT /V
in the text box. Add the following information to the registration database (see the Registration Editor Help menu for instructions):
.sd=ServerDemo
ServerDemo=Server Demo
protocol
StdFileEditing
server=<fully qualified path to SRVRDEMO.EXE>
verb
0=&Play
1=&Edit
Alternatively, you can create a registration file and merge it with the registration database; this is a preferable method because it is less time-consuming. Using your favorite text editor, enter the following lines into a file:
HKEY_CLASSES_ROOT\.sd = ServerDemo
HKEY_CLASSES_ROOT\ServerDemo = Server Demo
HKEY_CLASSES_ROOT\ServerDemo\protocol\StdFileEditing\server =
<fully qualified path to SRVRDEMO.EXE>
HKEY_CLASSES_ROOT\ServerDemo\protocol\StdFileEditing\verb\0 = &Play
HKEY_CLASSES_ROOT\ServerDemo\protocol\StdFileEditing\verb\1 = &Edit
Save this file with an REG extension, choose Run from the Program Manager File menu, and type the following command:
REGEDIT /S MYREG.REG
where MYREG.REG is the registration file you created. This command merges MYREG.REG with the registration database and allows you to run SRVRDEMO.
For information on using CLIDEMO and SRVRDEMO, see the CLIDEMO abstract.
SRVRDEMO was built and tested under Microsoft(R) Windows(TM) version 3.1.
{ewc navigate.dll, ewbutton, /Bcodeview /T"Click to open or copy files in the srvrdemo project." /C"samples}