写关键部分function Login(UID,PWD,cnStr:PChar):integer;stdcall;
var
Ado1:TADODataSet;
begin
Ado1:=TADODataSet.Create(Application);
……
……
Ado1.commandtext:='select * from MyTable where UID='''+StrPas(UID)+''' and PWD='''+StrPas(PWD)+'';
Ado1.active:=true;//开始出错??
if not Ado1.eof then
……
end
var
Ado1:TADODataSet;
begin
Ado1:=TADODataSet.Create(Application);
……
……
Ado1.commandtext:='select * from MyTable where UID='''+StrPas(UID)+''' and PWD='''+StrPas(PWD)+'';
Ado1.active:=true;//开始出错??
if not Ado1.eof then
……
end
解决方案 »
免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货