关于Delphi6自带demo中的callback的问题!请高手解答!急!!!(100分)

  • 主题发起人 主题发起人 hawkereye
  • 开始时间 开始时间
H

hawkereye

Unregistered / Unconfirmed
GUEST, unregistred user!
把Borland/Delphi6/Demos/Corba/Idl2Pas/Callbacks中的文件Rates_Impl.pas加上两行

加一处'uses ClientMain;
然后在TRates.get_interest_rate 中加一行显示:'Form1.Memo1.Lines.Append('get
interest_rate');
当运行程序点击get rates按钮时,客户端会死掉。直到你把服务器关掉。
请帮忙研究一下,谢谢
 
大虾都哪里去了?没人理我?
55555555555555
 
'Form1.Memo1.Lines.Add('get
interest_rate');
 
因为我学校这边没有环境,无法调试
不过我想请问这有什么区别吗?还有你试过了吗?
 
Adds the string S to the list.
procedure Append(const S: string);
Description
Append is the same as the Add method, except that itdo
es not return a value. Use Append when there is no need to know the index of the string after it has been added, or with descendants of TStrings for which the index returned is not meaningful.
For example, the TStrings descendant used by memo objects uses an index to determine where to insert a string, but the inserted stringdo
es not necessarily end up as a single string in the list. Part of the inserted text may become part of the previous string, and part may be broken off into a subsequent string. The index returned by Add is not meaningful in this case.
Use Append rather than Add as a parameter for a function requiring a TGetStrProc.
 
后退
顶部