WinExec The WinExec function runs the specified application. This function is provided for compatibility with 16-bit Windows. Win32-based applications should use the CreateProcess function. UINT WinExec( LPCSTR lpCmdLine, // address of command line UINT uCmdShow // window style for new application );
The WinExec function runs the specified application. This function is provided for compatibility with 16-bit Windows. Win32-based applications should use the CreateProcess function. UINT WinExec(
LPCSTR lpCmdLine, // address of command line
UINT uCmdShow // window style for new application
);
begin
ShellExecute(0, nil, pchar('calc.exe'), nil, nil, SW_NORMAL)
end;