用PaxScript的import工具转换ADODB.Pas后引用IMP_ADODB运行程序提示“Project DbParam.exe raised exception class TPAXScriptFailure with message ') expected.'. Process stopped. Use Step or Run to continue.”错误把IMP_ADODB注释掉就不报错了,问题出在IMP_ADODB文件上呀怎么回事?以下是源码:unit Unit1;interfaceuses Windows, Messages, SysUtils, Variants, Classes, Graphics, Controls, Forms, Dialogs, StdCtrls, ExtCtrls, ADODB, PaxScripter, PaxPascal; type TForm1 = class(TForm) procedure Button1Click(Sender: TObject); procedure FormCreate(Sender: TObject); procedure FormDestroy(Sender: TObject); private AdoConn: TADOConnection; AdoQry : TADOQuery; DBName, TableName: string; Scripter: TPaxScripter; Language: TPaxPascal; public { Public declarations } end;var Form1: TForm1;implementationuses IMP_SysUtils, IMP_Classes, IMP_StdCtrls, IMP_Controls, IMP_Forms, IMP_Graphics, IMP_Db, IMP_ADODB;procedure TForm1.Button1Click(Sender: TObject);begin TableName := 'aaa'; DBName := 'bbb'; Scripter := TPaxScripter.Create(nil); Language := TPaxPascal.Create(nil); try Scripter.RegisterLanguage(Language); Scripter.RegisterObject('Form1', Form1); Scripter.RegisterObject('AdoConn', AdoConn); Scripter.RegisterObject('AdoQry', AdoQry); Scripter.RegisterVariable('TableName', 'String', @TableName); Scripter.RegisterVariable('DBName', 'String', @DBName); Scripter.AddModule('1', Language.LanguageName); Scripter.AddCode('1', 'uses SysUtils, Classes, StdCtrls, Controls, Forms, Graphics, DB, ADODB;'); Scripter.AddCode('1','Form1.Memo1.Lines.Add(DBName+TableName);'); Scripter.Compile; Scripter.Run; if Scripter.IsError then raise Exception.create(Scripter.ErrorDescription); finally FreeAndNil(Language); FreeAndNil(Scripter); end;end;procedure TForm1.FormCreate(Sender: TObject);begin AdoConn := TADOConnection.Create(Self); AdoQry := TADOQuery.Create(Self);end;procedure TForm1.FormDestroy(Sender: TObject);begin AdoConn.Free; AdoQry.Free;end;end.