问一个非常菜的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'