Re: g_spawn*() on windows
- From: Allin Cottrell <cottrell wfu edu>
- To: Michael Cronenworth <mike cchtml com>
- Cc: gtk-app-devel-list gnome org
- Subject: Re: g_spawn*() on windows
- Date: Thu, 3 Jul 2014 10:26:13 -0400 (EDT)
On Thu, 3 Jul 2014, Michael Cronenworth wrote:
On 07/03/2014 08:33 AM, jcupitt gmail com wrote:
Yes, I'm doing that. It all works and I can capture stdout and stderr
from the convert.exe I'm running, it's just that I get a very annoying
command window flash on the screen each time.
If anyone has any ideas about the command window, I'm all ears:-(
I don't have ImageMagick binaries to check myself, but are they compiled as
Windows apps or console apps? Console apps will always force a command prompt
window to open. This is not a by-product of a g_spawn call.
Within the win32 API there's a way to suppress the appearance of the
console in such a situation (by passing the flag CREATE_NO_WINDOW to the
function CreateProcess). I don't know offhand if the gspawn API exposes
this option. I use CreateProcess directly in the Windows version of my GTK
application; the API is fairly simple, as Windows goes.
Allin Cottrell
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]