假设ODAC主目录在 D:\app\odac
Delphi7主目录在 D:\Program Files\Borland\Delphi7
1.修改D:\app\odac\Source\make.bat文件如下
rem Prepare ==============================================================
rem ======================================================================
set IDEName=%1
set IDEVer=%2
set PrjName=Odac
set PrjNameL=odac
set PrjNameU=ODAC
set IdeDir="C:\Program Files (x86)\Borland\Delphi7
注意,上面只有一个",后面没有"
2.在DOS下进入如下目录 D:\app\odac\Source\Delphi7
打入如下命令..\make Delphi 7
DOS界面如下:D:\app\odac\Source\Delphi7>..\make Delphi 7
3.在Delphi7->tools->Environment Options->Library->Library path 中加入如下两项
D:\app\odac\Source
D:\app\odac\Source\Delphi7
4.d:\app\odac\Bin\Delphi7\目录下的所有*.bpl拷贝到D:\Program Files\Borland\Delphi7\Bin 目录下
5.在Delphi7中Component->Install Packages中添加D:\Program Files\Borland\Delphi7\Bin\dclodac70.bpl
如果出现一个对话框提示是否要升级,选择“否”
odac 下载链接 链接:https://pan.baidu.com/s/1tX5eymRo81dogUmj9FpbIA?pwd=ez3n
提取码:ez3n