Re: g_spawn_async and Windows service



On 6 November 2011 20:31, TomÃÅ Åoltys <tomas soltys range-software com>wrote:

 Thanks for help, but this is not the case. If I disable "service"
commands in my application, then the command line program gets executed
without any problem.


This is a good starting point then to understand what fails. I'm sorry I
cant' help you more on this front.



This also leads me to another question I have.
Is it possible to execute the program in the background? Because as it is
done currently a new window (command line window) will appear and program
displays its output there.


If you don't want the program to create a new command line window when you
run it, you need to pass the " -mwindows" compile flag to gcc when you
compile it.

Regards,

Vivien



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]