我用Delphi封装一个COM的DLL,想添加一个Com组件,该类的接口类继承其他类的所有方法和属性,
采用 TMail = class(...,...,TFatherClass) 的方式来申明继承父类时出现错误:
interface type request.
请问象这样的问题如何解决,谢谢!
采用 TMail = class(...,...,TFatherClass) 的方式来申明继承父类时出现错误:
interface type request.
请问象这样的问题如何解决,谢谢!
解决方案 »
- delphi中文件包含问题?
- delphi 修改host文件的办法
- 如何用IHTML接口取得鼠标在webbrowser上移动时的坐标
- ODBC连接数据库后程序里创建表的问题
- 修改时,dbedit输入数据为什么要先把dbedit框中的数据选中再重新输入?
- delphi 操作 ini 文件
- 怎样修改远程的ftp上(或是http(?))上的.txt文件
- Anycell Report中国式报表V1.71已经发布,包含多数源码,最新支持:在Rich文本中插入表达式,可导出Excel、html、rtf等文档格式...
- 各位大虾,谁有delphi6开发人员指南的中文版
- 告急!!!请问如何在Ehlib的PrintDBGridEh的属性BeforeGridText中动态增加多个值
- 如何判断指定文件夹是否存在
- 好难
IFoo=interface
['{63B83BC3-96DB-4AF2-94C0-CE723630DDFA}'] //按CTRL+SHIFT+G自动生成
function F1:Integer;
end;
IBar=integer(IFoo) //继承
['{308BD10F-2CAF-4EC1-87DF-0D48E3EA9547}']
function F2:Integer;
end;
2.实现接口
//接上
TMyClass=class(TInterfaceedObject,IFoo,IBar)
function F1:Integer;
function F2:Integer;
end;
它内部没有定义接口,我就是想通过COM组什封装这个unit单元,并继承它的类
来实现在COM组件中公布这个类的所有public方法及属性,
要怎么做呢,请赐教!谢谢
TFoo = class(TInterfacedObject, IFOO)
private
FParentClass :TParentClass;
public
constructor Create;
destructor Destroy;
procedure ParentFunction1
procedure ParentFunction2
end;procedure TFoo.Create
begin
inherited;
FParentClass := TParentClass.Create;
endprocedure TFoo.Destroy;
begin
FParentClass.Free;
inherited;
end;procedure TFoo.ParentFunction1
begin
FParentClass.ParentFunction1;
end;
...