我讨厌别人叫我小笨笨!!
呵~不过,还是照这位大师指点——加上了它的NAME,即
ADOConEd.EditConnectionString(Adoconnection1);(开始我是写成adoconnection)
结果:
[Error] Unit1.pas(32): Undeclared identifier: 'ADOConEd'
[Fatal Error] Project1.dpr(6): Could not compile used unit 'Unit1.pas'
虽说编译错误少了很多,可是还是通不过啊~~
我就是在project manage中add ../Source/Property Editoers/AdoConEd.pas的,
project.pas中也有引用到Source/Property Editoers/AdoConEd.pas,
(是不是不能这样引用??)应该如何才是正确的引用方法,
我注意到ADOconED仅是一个.pas 不是.dpr,
是不是因为这个原因?
附:project1.drp代码
program Project1;
uses
Forms,
Unit1 in 'Unit1.pas' {Form1},
AdoConEd in '../../../Source/Property Editors/AdoConEd.pas' {ConnEditForm};
{$R *.res}
begin
Application.Initialize;
Application.CreateForm(TForm1, Form1);
Application.CreateForm(TConnEditForm, ConnEditForm);
Application.Run;
end.