L
liaozhiguo
Unregistered / Unconfirmed
GUEST, unregistred user!
procedure Tf_login.FormCreate(Sender: TObject);
var myini:Tinifile;
server:string;
begin
if myini=nil then
myini:=tinifile.Create(extractfilepath(paramstr(0))+'sqlini.ini');
server:=myini.ReadString('SQL','server','');
end;
以上在DLL中编译通过。可是执行出错,不知为何? 该放的地方ShareMem, 都放了
server:=myini.ReadString('SQL','server','');
这一句出错
var myini:Tinifile;
server:string;
begin
if myini=nil then
myini:=tinifile.Create(extractfilepath(paramstr(0))+'sqlini.ini');
server:=myini.ReadString('SQL','server','');
end;
以上在DLL中编译通过。可是执行出错,不知为何? 该放的地方ShareMem, 都放了
server:=myini.ReadString('SQL','server','');
这一句出错