[Lazarus] TProcess

Antonio Fortuny a.fortuny at sitasoftware.lu
Thu Feb 21 17:03:34 CET 2013


Le 21/02/2013 16:58, Sven Barth a écrit :
> 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).
Sounds good. I'll try it tomorrow mornig and post a comment

>
> Regards,
> Sven
>
>
> -- 
> _______________________________________________
> Lazarus mailing list
> Lazarus at lists.lazarus.freepascal.org
> http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus






More information about the Lazarus mailing list