我把代码放上
我用delphi+intraweb+sqlserver +tdatabase+tquery+odbc写了 ASAPI DLL 但是当我把它放到IIS和运行他 http://localhost/a1/project1.dll
IE 6 show 'Unknown database.Alias: t1 '
我的 database1.databasename 是 t1 和 alias 不是 't1'
My datamoduleas follows:
TDataModule1 = class(TDataModule)
Query1: TQuery;
Database1: TDatabase;
Session1: TSession;
DataSource1: TDataSource;
private
{ Private declarations }
public
{ Public declarations }
end;
//////////////////////////////////
TIWUserSession = class(Tcomponent)
private
{ Private declarations }
public
{ Public declarations }
d1:tdatamodule1;
constructor create(aowner:tcomponent);
end;
implementation
{$R *.dfm}
{ TIWUserSession }
constructor TIWUserSession.create(aowner: tcomponent);
begin
d1:=tdatamodule1.Create(aowner);
end;
请各位看看指点一下怎么改