📄 93.htm
字号:
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<title>CTerm非常精华下载</title>
</head>
<body bgcolor="#FFFFFF">
<table border="0" width="100%" cellspacing="0" cellpadding="0" height="577">
<tr><td width="32%" rowspan="3" height="123"><img src="DDl_back.jpg" width="300" height="129" alt="DDl_back.jpg"></td><td width="30%" background="DDl_back2.jpg" height="35"><p align="center"><a href="http://bbs.tsinghua.edu.cn"><font face="黑体"><big><big>水木清华★</big></big></font></a></td></tr>
<tr>
<td width="68%" background="DDl_back2.jpg" height="44"><big><big><font face="黑体"><p align="center"> Delphi编程 (BM: strayli FlyingBoy) </font></big></big></td></tr>
<tr>
<td width="68%" height="44" bgcolor="#000000"><font face="黑体"><big><big><p align="center"></big></big><a href="http://cterm.163.net"><img src="banner.gif" width="400" height="60" alt="banner.gif"border="0"></a></font></td>
</tr>
<tr><td width="100%" colspan="2" height="454"> <p align="center">[<a href="index.htm">回到开始</a>][<a href="15.htm">上一层</a>][<a href="94.htm">下一篇</a>]
<hr><p align="left"><small>发信人: strayli (stray), 信区: Delphi <br>
标 题: A Technical View of Borland MIDAS Part II (9) <br>
发信站: BBS 水木清华站 (Thu Nov 12 22:23:30 1998) WWW-POST <br>
<br>
Setting up a Domain <br>
DCOM is relatively useless unless you have a domain server. Domain servers <br>
are regular install of Windows NT that are set up to work with domains. You <br>
cannot change a standard install of Windows NT Server into a domain server. <br>
You must reinstall the server, being careful this time to configure the <br>
server as a domain server, not as a stand alone server. <br>
<br>
All the Windows NT work stations and Windows 95 machines that you want to use <br>
your distributed application should now become members of your domain. To <br>
make that work properly on a Windows 95 machine you should open the Network <br>
applet from the Contol Panel and turn to the Access Control page. Make sure <br>
you have User Level Access Control and not Share Level Access Control. This <br>
means security will be handled by downloading a list of users and their <br>
rights from the domain server. In short, you have to have a domain server in <br>
the network or this process will not work correctly. <br>
<br>
While still in the Network applet, flip to the Configuration page, double <br>
click on Client for Microsoft Networks, and state the name of your domain <br>
server. (In this discussion I am omitting correct configuration of network <br>
services such as TCP/IP.) <br>
<br>
If you are new to domain servers, you will probably find them a bit confusing <br>
at first. The best way to get up to speed is to buy a book on the Windows NT <br>
Server. There are a number of these books available on the market, and some <br>
of them do a good job of explaining the intricacies of domains. My suggestion <br>
is to browse through a bookstore until you find one that contains a good <br>
explanation of domain servers. If you read their explanation in the book <br>
store and it seems incomplete or incoherent, then it probably won't get much <br>
better when you go back home. Browse around until you find at least a <br>
reasonably competent book, as this subject is just tricky enough to warrant a <br>
good treatment from a third party book. <br>
<br>
Using DCOMCfg <br>
When you are using DCOM, there are two different ways to make the connection. <br>
You do not always have to be conscious of the difference between the two <br>
techniques, or even that the two techniques exist, but it is best if you do <br>
have at least some knowledge of the technology involoved. <br>
<br>
To make a connection to an object on a remote machine, the system needs to <br>
know both the name or IP address of the remote machine, and the GUID of the <br>
object that you want to connect to on that machine. (If you have the prog id <br>
object that you want to connect to on that machine. (If you have the prog id <br>
of an object, you can get the GUID by calling the ProgIDtoClassID function <br>
from the ComObj unit. This process can be handled for you automatically by <br>
the IDE.) <br>
<br>
It turns out that you can put entries in the registry that will allow windows <br>
to access an object on a remote machine as if it were on the local machine. <br>
What happens is that you call the object the standard way for handling local <br>
objects, but when Windows looks up the object in the registry it sees that <br>
the object actually resides on a remote machine and takes the necessary steps <br>
to access it. As far as the user is concerned, the object appears to be <br>
local, but behind the scenes Windows is making the connection remotely. <br>
<br>
The low level code called by the IDE is propably similar to the <br>
CreateOleObject call used by Delphi users to connect to local COM objects and <br>
the CreateRemoteComObject call made by Delphi users to connect to remote <br>
objects. Once again, you don't have to call these methods, since the IDE does <br>
it for you, but I mention them in case you want to dig into this technology <br>
further, as explained in the DCOM paper found on my web site. <br>
<br>
You can, of course, edit the registry yourself in order to make the changes <br>
necessary so that Windows can treat a remote object as if it were a local <br>
object. However, the simplest way to make the changes is by using a program <br>
called DCOMCFG.EXE. This program ships with Windows NT, and is available for <br>
Windows 95 via Microsoft's web site. <br>
<br>
DCOMCFG, can also be used for myriad other purposes, most of which involve <br>
security. You can use this utility to force a server on a Windows NT machine <br>
to appear on the screen, rather than run in the background. <br>
<br>
<br>
<br>
-- <br>
※ 来源:·BBS 水木清华站 bbs.net.tsinghua.edu.cn·[FROM: 202.38.79.111] <br>
</small><hr>
<p align="center">[<a href="index.htm">回到开始</a>][<a href="15.htm">上一层</a>][<a href="94.htm">下一篇</a>]
<p align="center"><a href="http://cterm.163.net">欢迎访问Cterm主页</a></p>
</body>
</html>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -