⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 85.htm

📁 水木清华BBS精华
💻 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="86.htm">下一篇</a>]
<hr><p align="left"><small>发信人: strayli (stray), 信区: Delphi <br>

标  题: A Technical View of Borland MIDAS Part II (1) <br>

发信站: BBS 水木清华站 (Thu Nov 12 22:01:12 1998) WWW-POST <br>

  <br>

  <br>

  <br>

  <br>

Building a Remote Data Client Application <br>

Now that you have the server set up, the next thing to do is set up the <br>

client. In this example, I will assume you are running both the server and <br>

the client on the same machine. Once the design phase is over, you can move <br>

the server to a remote machine, as covered later in the paper. <br>

  <br>

Here is quick overview of the steps involved in creating the client: <br>

  <br>

Drop down a TRemoteServer and use its ServerName property to connect it to a <br>

server. These servers are listed in a drop down combo box. Set Connected to <br>

True. <br>

Drop down a TClientDataSet control and set its RemoteServer property to the <br>

server you just wired. Set the ProviderName property to the name of a dataset <br>

provider from the server. These providers are listed in a drop down combo. <br>

Hook up database controls to the TClientDataSet just as you would were it a <br>

TTable or TQuery. <br>



Now run your application. <br>

I will now go over these steps again in more detail. To get started, create a <br>

new application, and drop down a TRemoteServer object on it, and fill out its <br>

properties as shown in Figure 4. <br>

  <br>

  <br>

  <br>

Figure 4: Filling out the properties for the TRemoteServer component. <br>

  <br>

When hooking up the TRemoteServer component, the key property is called <br>

ServerName. You can use the ServerName drop down combo box property editor to <br>

find the items you need. If these fields are blank, or do not contain the <br>

name you need, then the server is not registered on your current system. To <br>

remedy the situation, run the server once on your client machine. <br>

  <br>

The act of running the server places an entry in the Windows Registry. To see <br>

the entry, run RegEdit.exe from the Run menu item on the Start menu. Open up <br>

HKEY_CLASSES_ROOT and search for the name of the executable that contains the <br>

server. For instance, the key in this case is called CustOrdersServer.CustOrde <br>

rsRemoteData. The first half of this key is from the executable name of the <br>

server, and the second half is from the name you gave to the remote data <br>

module, which is also, by default, the name of the exported COM interface. <br>

ed COM interface. <br>

  <br>

If you want to access a server on a remote machine from a Delphi <br>

TRemoteServer, you can use the ComputerName property to locate the machine. <br>

Once again, there is a special dialog that pops up when you select <br>

ComputerName, so that you can select the computer by name. <br>

  <br>

  <br>

  <br>

-- <br>

※ 来源:·BBS 水木清华站 bbs.net.tsinghua.edu.cn·[FROM: 202.38.72.60] <br>

</small><hr>
<p align="center">[<a href="index.htm">回到开始</a>][<a href="15.htm">上一层</a>][<a href="86.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 + -