shellexecute(0,'c:\***.exe',nil,sw_shownormal)
这里的路径是字符串:'c:\***.exe'这样编译后是可以调用外部程序的
但pchar('c:\***.exe')加上pchar编译没错,但就调用外程序没反映
const s:string='http://****.jpg';
urldownloadtofile(nil,pchar(s),pchar('c:\1.jpg'),0,nil);
这里语句中为什么又要加上pchar(这里是字符串网址)是不是每个函数都有规定参数有的是用字符串,有的是用pchar(字符串)呢?