Q
qmtxf
Unregistered / Unconfirmed
GUEST, unregistred user!
我开发的一个VCL控件在编译这一行时出错
uses
Windows, Messages, SysUtils, Classes, Controls, StdCtrls,shellapi;
type
tdropfilenotifyevent=procedure(sender:tobject;filenames:tstringlist) of object;
Tdropfilelistbox2 = class(TListBox)
private
{ Private declarations }
fenabled:boolean;
[red]fdropfile : TMynotifyEvent; <------这一行 [/red]
[black]procedure dropfiles(var msg:tmessage);message wm_dropfiles;
procedure setdropenabled(benabled:boolean);[/black]
[red]错误信息
dropfilelistbox2.pas(14): Undeclared identifier: 'TMynotifyEvent'[/red]
uses
Windows, Messages, SysUtils, Classes, Controls, StdCtrls,shellapi;
type
tdropfilenotifyevent=procedure(sender:tobject;filenames:tstringlist) of object;
Tdropfilelistbox2 = class(TListBox)
private
{ Private declarations }
fenabled:boolean;
[red]fdropfile : TMynotifyEvent; <------这一行 [/red]
[black]procedure dropfiles(var msg:tmessage);message wm_dropfiles;
procedure setdropenabled(benabled:boolean);[/black]
[red]错误信息
dropfilelistbox2.pas(14): Undeclared identifier: 'TMynotifyEvent'[/red]