在Delphi 例程中没有类似于C中的system
函数
int system(const char* command);
用下面的方法可以让你在Delphi中使用msvc runtime的函数
program YourProg;
function system(command:PChar):Integer;cdecl;external "msvcrt.dll" name "system";
begin
system("pause");
end.
在Delphi 例程中没有类似于C中的system
函数
int system(const char* command);
用下面的方法可以让你在Delphi中使用msvc runtime的函数
program YourProg;
function system(command:PChar):Integer;cdecl;external "msvcrt.dll" name "system";
begin
system("pause");
end.