[Lazarus] TProcess

Sven Barth pascaldragon at googlemail.com
Thu Feb 21 16:58:22 CET 2013


On 21.02.2013 14:54, Antonio Fortuny wrote:
> I have found one way to launch a new process and it works. The solution
> uses CreateProcess whose parameters are set accordingly to MS
> specifications: read http://msdn.microsoft.com/en-us/library/ms885182.aspx
>
> In the TProcess.Execute, the parameters build for the call to
> CreateProcess must be adapted for WinCE. This function works either for
> Win32 or WinCE

In that case you should be able to use TProcess if you set the Options 
accordingly (no poNewProcessGroup, but poNewConsole instead). You can 
see the WinCE implementation for TProcess in 
$fpcsrc/packages/fcl-process/src/wince/process.inc

Just in case: No StdIn/StdOut support on WinCE (at least not without 
writing an additional driver).

Regards,
Sven





More information about the Lazarus mailing list