F
fxh7622
Unregistered / Unconfirmed
GUEST, unregistred user!
我的代码是这样的:<br>tagTheadClient = record //强制下机使用的结构<br> pCardIDchar;<br> pComputerIP: Pchar; //要强制机器的IP<br> AConn: TADOConnection;<br> end;<br> TTheadMsg = tagTheadClient;<br> PTheadMsg = ^tagTheadClient;<br>.....<br>tMsg:TTheadMsg;<br>tMsg.pComputerIP:=Pchar(ComName);<br>tMsg.AConn:=ConnectADO;<br>tMsg.pCardID:=Pchar(RefView.Items.Item.Caption);<br>tTHandle:=createthread(nil,0,@ForceDownNet,tMsg,0,tDword);<br><br>线程的实现函数是这样的:<br>procedure ForceDownNet(pMsg:TTheadMsg);<br>var<br> ItemList:TListItem;<br> ReFlag:Integer;<br> SQL:String;<br> //GetMsg:TTheadMsg;<br>begin<br> //GetMsg:=pMsg;<br> ReFlag:=DownPCIP(pMsg.pComputerIP);<br>end;<br><br>可是我再线程中设置断点的时候总是提示说pMsg.pComputerIP为空。这是为什么呢???<br>