For Window98:
在可以使用 DCOM 之前,必须规定哪些人可以访问共享的每一个文件或打印机。 打
开“网络”对话框,单击“访问控制”选项卡,单击“用户级访问控制”,然后规定
存储用户主列表的位置。
单击“开始”,单击“运行”,然后键入“ dcomcnfg”,也可以打开“分布式 COM
配置属性”对话框。
Windows/Help下有两个帮助文件可供参考: DcomCnfg.chm和Dcomcnfg.hlp
For Windows95:
To configure a Windows 95 computer for use as a DCOM server,do
wnload
DCOM95.EXE and DCM95CFG.EXE available from the OLE Development section of the Microsoft Web Site at:
http://www.microsoft.com/oledev
DCOM95.EXE is also available on the Microsoft Visual Basic 5.0 CD-ROM
(Enterprise, Professional and Standard editions) in the
/Pro/Tools/DCOM95 directory.
Afterdo
wnloading and saving DCOM95.EXE,do
the following:
Double-click DCOM95.EXE and proceed through the installation of
DCOM95. This process requires you to reboot your system upon
completion.
NOTE: If you intend to install DCM95CFG.EXE at the same time, you can
forgo rebooting your computer until the completion of DCM95CFG.EXE
installation.
Double-click DCM95CFG.EXE. This will install the DCOMCNFG.EXE utility
that allows you to configure a DCOM server component. This requires
you to reboot your system upon completion.
Change the key below in the Windows 95 registry:
HKEY_LOCAL_MACHINE/Software/Microsoft/OLE/EnableRemoteConnect
to the following:
Y
NOTE: Failure to set this key results in the following error on the
client:
"Run-time error '429': ActiveX component can't create object"
Run DCOMCNFG on the Windows 95 Server. Select the server component
and click the "Properties" button. Select the "Location" tab and
ensure that the "Run application on this computer" check box is
selected.
Select the "Security" tab. Select either "Use default access
Permissions" or "Use custom access permissions." If you opt to use
custom permissions, click the Edit button.
Use the "Add Access Permissions" dialog box to grant or deny access
to users of the server component. Click OK to close the "Add Access
Permissions" dialog box. Click OK again to close the "Access
Permissions" dialog box. then
click Apply to put your access
permissions into effect. If youdo
not set custom access permissions,
your server component will use the default access permissions for the
computer. Default access permissions are set from the "Distributed
COM Configuration Properties" dialog box. Select the tab labeled
"Default Security" to set access permissions as described above.
NOTE: Failure to set the access permissions will result in the
following error on the client:
"Run-time error '70': Permission denied"
While it is not necessary to place a shortcut to RPCSS.EXE (found in
your Windows/System folder) into your startup group, it is advisable
because RPCSS.EXE needs to be running on the server before clients
can connect.
NOTE: Failure to run RPCSS.EXE before attempting to connect to it
will result in the following error on the client:
"Run-time error '-2147023174 (800706ba)': Automation error"
This error message decodes to "The RPC server is unavailable."
Place a shortcut to the server component you want to automate through
DCOM into the startup group. Again, this is not necessary, but
because the server component must be running before a client can
access it, this is a good technique to ensure the component is always
running.
NOTE: Failure to run the server component results in the following
error on the client:
"Run-time error '429': ActiveX component can't create object"