天
天涯海角118
Unregistered / Unconfirmed
GUEST, unregistred user!
[?][]问题目如下:<br>在DLL单元中所建立过程如下:<br>procedure ybyzs(H:THandle;AConn:TADOConnection);stdcall; //声明DLL函数<br>procedure ybyzs(H:THandle;AConn:TADOConnection);(DLL所调用过程)<br>var<br>i:integer;<br>StrAdres:string;<br>begin<br> Application.Handle:=H;<br> with TForm3.Create(Application) do try//创建密码验证窗口<br> ADOConnection1:=AConn;<br> ADOConnection1.Connected:=true;<br> if ShowModal=mrok then<br> begin<br> form3.StrAdress:=TStringList.Create;<br> form3.checklistbox1.Items.Clear;<br> ADOQuery1.Connection :=ADOConnection1;<br> ADOQuery1.Open;<br> ADOQuery1.First ;<br> with form3.ADOQuery1 do<br> for i:=0 to RecordCount-1 do<br> begin<br> form3.checklistbox1.Items.Add(Fields[1].AsString);<br> form3.StrAdress.Add(Fields[0].AsString);<br> Next;<br> end;<br> end;<br> finally<br> free;//释放资源<br> end;<br> ADOQuery2.close;<br> ADOQuery2.Open;<br>end;<br>以上报错为:没有数据源名称<br><br>我的EM:ljylove1185@sina.com