将Dcom对象转换成Com+对象的一种办法[4]

[入库:2005年8月18日] [更新:2007年3月24日]

本文简介:选择自 liangma 的 blog

4、此时你的mts接口实现单元中,将会自动加入原dcom远程数据模块的接口声明,并加入实现代码的框架。

 

  tdemo = class(tmtsdatamodule, idemo)

  private

    { private declarations }

  protected

    class procedure updateregistry(register: boolean; const classid, progid: string); override;

//以下是我的原远程数据模块的接口表,delphi自动将其复制到此单元中,并且生成了代码框架

    procedure findpersons(const name, unitno: widestring;

      out rdataset: olevariant); safecall;

    procedure getfieldsname(const tbname: widestring; out fdnames: olevariant);

      safecall;

    procedure getlaborage(const personno: widestring; out records: olevariant);

      safecall;

procedure getotherinfo(const tablename, personno: widestring;

……

  public

    { public declarations }

  end;

……

procedure tdemo.findpersons(const name, unitno: widestring;

  out rdataset: olevariant);

begin

 

end;

……

本文关键:将Dcom对象转换成Com+对象的一种办法
  相关方案
Google
 

本站最佳浏览方式为 分辨率 1024x768 IE 6.0(或更高版本的 IE浏览器)

go top