在.dpk中加上路径
package EhLib;{$R *.RES}
{$R '..\Common\EhLibReg.dcr'}
{$ALIGN ON}
{$ASSERTIONS OFF}
{$BOOLEVAL OFF}
{$DEBUGINFO OFF}
{$EXTENDEDSYNTAX ON}
{$IMPORTEDDATA ON}
{$IOCHECKS ON}
{$LOCALSYMBOLS OFF}
{$LONGSTRINGS ON}
{$OPENSTRINGS ON}
{$OPTIMIZATION ON}
{$OVERFLOWCHECKS OFF}
{$RANGECHECKS OFF}
{$REFERENCEINFO OFF}
{$SAFEDIVIDE OFF}
{$STACKFRAMES OFF}
{$TYPEDADDRESS OFF}
{$VARSTRINGCHECKS ON}
{$WRITEABLECONST ON}
{$MINENUMSIZE 1}
{$IMAGEBASE $400000}
{$DESCRIPTION 'EhLib 2.4 Beta'}
{$DESIGNONLY}
{$IMPLICITBUILD OFF}requires
vcl50,
VCLDB50,
dclstd50;contains
DBSumLst in '..\Common\DBSumLst.pas',
GridEhEd in '..\Common\GridEhEd.pas',
EhLibReg in '..\Common\EhLibReg.pas',
PrnDbgeh in '..\Common\PrnDbgEh.pas',
PrnDGDlg in '..\Common\PrnDGDlg.pas' {fPrnDBGridEHSetupDialog},
PrntsEh in '..\Common\PrntsEh.pas',
PrvFrmEh in '..\Common\PrvFrmEh.pas' {PreviewFormEh},
PrViewEh in '..\Common\PrViewEh.pas',
RichEdEh in '..\Common\RichEdEh.pas' {RichStrEditDlgEh},
DBGridEh in '..\Common\DBGridEh.pas',
DBGridEhImpExp in '..\Common\DBGridEhImpExp.pas',
DBLookupEh in '..\Common\DBLookupEh.pas',
DBCtrlsEh in '..\Common\DBCtrlsEh.pas',
ToolCtrlsEh in '..\Common\ToolCtrlsEh.pas',
EhLibConsts in '..\Common\EhLibConsts.pas',
DBLookupGridsEh in '..\Common\DBLookupGridsEh.pas';end.
package EhLib;{$R *.RES}
{$R '..\Common\EhLibReg.dcr'}
{$ALIGN ON}
{$ASSERTIONS OFF}
{$BOOLEVAL OFF}
{$DEBUGINFO OFF}
{$EXTENDEDSYNTAX ON}
{$IMPORTEDDATA ON}
{$IOCHECKS ON}
{$LOCALSYMBOLS OFF}
{$LONGSTRINGS ON}
{$OPENSTRINGS ON}
{$OPTIMIZATION ON}
{$OVERFLOWCHECKS OFF}
{$RANGECHECKS OFF}
{$REFERENCEINFO OFF}
{$SAFEDIVIDE OFF}
{$STACKFRAMES OFF}
{$TYPEDADDRESS OFF}
{$VARSTRINGCHECKS ON}
{$WRITEABLECONST ON}
{$MINENUMSIZE 1}
{$IMAGEBASE $400000}
{$DESCRIPTION 'EhLib 2.4 Beta'}
{$DESIGNONLY}
{$IMPLICITBUILD OFF}requires
vcl50,
VCLDB50,
dclstd50;contains
DBSumLst in '..\Common\DBSumLst.pas',
GridEhEd in '..\Common\GridEhEd.pas',
EhLibReg in '..\Common\EhLibReg.pas',
PrnDbgeh in '..\Common\PrnDbgEh.pas',
PrnDGDlg in '..\Common\PrnDGDlg.pas' {fPrnDBGridEHSetupDialog},
PrntsEh in '..\Common\PrntsEh.pas',
PrvFrmEh in '..\Common\PrvFrmEh.pas' {PreviewFormEh},
PrViewEh in '..\Common\PrViewEh.pas',
RichEdEh in '..\Common\RichEdEh.pas' {RichStrEditDlgEh},
DBGridEh in '..\Common\DBGridEh.pas',
DBGridEhImpExp in '..\Common\DBGridEhImpExp.pas',
DBLookupEh in '..\Common\DBLookupEh.pas',
DBCtrlsEh in '..\Common\DBCtrlsEh.pas',
ToolCtrlsEh in '..\Common\ToolCtrlsEh.pas',
EhLibConsts in '..\Common\EhLibConsts.pas',
DBLookupGridsEh in '..\Common\DBLookupGridsEh.pas';end.
在library页的library path增加目录即可