你可能要按照下面的方法重新编译一下Delphi的项目(在QTP10,QTP9.2有可能不一样,具体看帮助文档):
Add the <QuickTest Professional Installation folder>\dat\Extensibility\Delphi folder to your Delphi project search path or copy the contents of the <QuickTest Professional Installation folder>\dat\Extensibility\Delphi folder to your project folder.
Add MicDelphiAgent to the Uses section of your application's project file (project.dpr) as shown in the example below:
program flight;