问一个非常菜的delphi问题,大家不要笑我,如何启动程序所在目录的另一个程序?非常感谢!
str:=ExtractFilePath(application.exename)+ExtractFileName('run.exe');
winexec(str,9);
_________________________
[Error] Unit1.pas(64): Incompatible types: 'String' and 'PAnsiChar'
[Fatal Error] uleadautorun.dpr(5): Could not compile used unit 'Unit1.pas'
str:=ExtractFilePath(application.exename)+ExtractFileName('run.exe');
winexec(str,9);
_________________________
[Error] Unit1.pas(64): Incompatible types: 'String' and 'PAnsiChar'
[Fatal Error] uleadautorun.dpr(5): Could not compile used unit 'Unit1.pas'
解决方案 »
免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货