这段程序的功能是调用计算器这个应用软件,它的路径是:“c:\windows\system32\calc.exe"
procedure Tmainsys.N21Click(Sender: TObject);
begin
winexec('c:\windows\system32\calc.exe');//这里有错误,但是我不知道怎么写
end;
end.
procedure Tmainsys.N21Click(Sender: TObject);
begin
winexec('c:\windows\system32\calc.exe');//这里有错误,但是我不知道怎么写
end;
end.
这是DELPHI帮助里的,自己看看吧。
WINEXEC是用来兼容早期的windows平台的应用程序。对于WIN32平台的应用程序应该使用CREATEPROCESS。
引用单元:shellapi
{$EXTERNALSYM WinExec}