1,Delphi7 与持续集成Cruisecontrol.net
写一个bat脚本build.bat,缺少什么dcu的话,就把路径加进去,内容如下
"C:\Program Files\Borland\Delphi7\Bin\dcc32.exe" -B -U"C:\Program Files\Borland\Delphi7\Imports" 工程文件.dpr
然后在cc的配置文件里加入任务
<tasks>
<exec>
<executable>build.bat</executable>
<baseDirectory>build.bat路径</baseDirectory>
</exec>
</tasks>
2,Delphi7没有代码格式化,大的if else 嵌套块很难看懂,可以装一个Delphi Formatter,快捷键Ctrl-D
3,开发阶段code generation->Optimization应该关闭,否则debug 的时候inspect变量或表达式出不来
发布阶段打开优化,runtime errors 和debugging所有选项不要选