L
lkdbdlkq
Unregistered / Unconfirmed
GUEST, unregistred user!
用createprocess执行word,需要为外部程序指定一个叁数'd:/aaa.doc',如果这个文档是stringlist中的某一项,那么该如何写呢?(5分)<br />var<br>x:integer;<br>wordlist:tstringlist;<br>si:startupinfor;<br>pirocess_information;<br><br>begin<br> wordlist:=tstringlist.create;<br> wordlist.add(....);<br> <br> for x:=1 to wordlist.count do begin<br> createprocess(nil,'d:/office/word.exe wordlist[x-1]',nil,nil,false,0,nil,nil,si,pi);<br> end; <br><br>end;<br><br>调试半天,总是不成功,如何妆wordlist中和doc文档作为word.exe的参数来传递呢?