在DLL中创建好控件后,要给它加事件处理,比如ONCLICKprocedure click(Sender: TObject);
begin
showmessage('asdasd');
end;procedure show(ccc : Tapplication);
begin
...
button1.onclick := click(ccc);
...
end;但我编译时不通过,报:
[Error] Unit1.pas(27): Incompatible types: 'TNotifyEvent' and 'procedure, untyped pointer or untyped parameter'请教各位高手高手高高手!
begin
showmessage('asdasd');
end;procedure show(ccc : Tapplication);
begin
...
button1.onclick := click(ccc);
...
end;但我编译时不通过,报:
[Error] Unit1.pas(27): Incompatible types: 'TNotifyEvent' and 'procedure, untyped pointer or untyped parameter'请教各位高手高手高高手!
解决方案 »
免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货