F
fuku
Unregistered / Unconfirmed
GUEST, unregistred user!
小弟想实现deltree的功能,代码如下:<br>var OpStruc: TSHFileOpStruct;<br> frombuf: Array [0..128] of Char;<br> Source:String;<br>begin<br> Source:='C:/aaa';<br> FillChar( frombuf, Sizeof(frombuf), 0 );<br> StrPCopy( frombuf, Source );<br> With OpStruc DO Begin<br> Wnd:= Handle;<br> wFunc:= FO_DELETE;<br> pFrom:= @frombuf;<br> fFlags:=FOF_SIMPLEPROGRESS;<br> fAnyOperationsAborted:= False;<br> hNameMappings:= Nil;<br> lpszProgressTitle:= Nil;<br> end;<br> ShFileOperation( OpStruc );<br>end;<br>问题是一执行就出现shell32.dll访问内存出错,此时deltree功能仍然完成,<br>如何解决?<br>