D
deadman
Unregistered / Unconfirmed
GUEST, unregistred user!
aIni := TIniFile.Create(ExtractFilePath(paramStr(0)) + 'Config.ini');
DBName := aIni.ReadString('information', 'DBname', '');
DBPwd := aIni.ReadString('information', 'DBpwd', '');
DBIP := aIni.ReadString('information', 'DBIP', '');
ADOC.ConnectionString := Constr1 + DBPwd + Constr2 + DBName + Constr3 + DBName + Constr4 + DBPwd + Constr5 + DBIP + Constr6 + DBName + Constr7;
ADOC.Connected := True;
-----------------------------------------------------------------
为什么服务程序会自动停止呢? ADOconnection手动配置好字符串连接就不会有问题
我想把程序做的活点该怎么做?(指动态连数据库)
DBName := aIni.ReadString('information', 'DBname', '');
DBPwd := aIni.ReadString('information', 'DBpwd', '');
DBIP := aIni.ReadString('information', 'DBIP', '');
ADOC.ConnectionString := Constr1 + DBPwd + Constr2 + DBName + Constr3 + DBName + Constr4 + DBPwd + Constr5 + DBIP + Constr6 + DBName + Constr7;
ADOC.Connected := True;
-----------------------------------------------------------------
为什么服务程序会自动停止呢? ADOconnection手动配置好字符串连接就不会有问题
我想把程序做的活点该怎么做?(指动态连数据库)