谁帮我解释一下Dispinterface和Interface的区别?(50分)

  • 主题发起人 主题发起人 Class(龙)
  • 开始时间 开始时间
when you use disinterface, you eliminate the first two steps associated
with IDispatch.The automation controller does not have to call GetIDsOfNames,
and the server does not have to respond with the dispid of the method in question. Instead, the dispid is determined at compile time.At runtime, the client program simply calls Invoke with the predetermined
dispid.
Dispinterfaces are for client convenience only, You do not actually
implement a dispinterface on the server.

From <<DELPHI COM PROGRAMMING>>
 
from "DELPHI COM PROGRAMMING"
 
拜托,能不能用中文?
 
thanx hllu,
and could you tell me if I can find 'Delphi Com Programming ' to download?
 
to class:
Dispinterface 是为使用者的方便,在编译时就提供了dispid, 你可以比较一下,其实两者没有太大区别。
to cj:
Delphi Com Programming 是2000 年的新书,估计网上一时还找不到:(
中文版估计也还没有。

 
接受答案了.
 

Similar threads

后退
顶部