monotone-devel
[Top][All Lists]
Advanced

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

Re: [Monotone-devel] mtn automate stdio - change working directory


From: rghetta
Subject: Re: [Monotone-devel] mtn automate stdio - change working directory
Date: Tue, 23 May 2006 14:40:56 +0200
User-agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8.0.2) Gecko/20060404 SeaMonkey/1.0.1

Markus Meyer wrote:
Thomas,

Thomas Keller wrote:
Again, if WM_CLOSE is correctly interpreted on Windows mtn builds as
equivalent to SIGTERM, Qt should do the trick and there wouldn't be
any need for such a function. But thanks!
It was my impression that WM_CLOSE is a message which can only be sent
to a window (that is, to a HWND message loop). As a console application,
monotone does not implement any windows (it is a console application
after all), and therefore the WM_CLOSE approach doesn't work. There's
not much the Monotone devs can do here, although there's probably some
way to register a hidden window, implement a process message loop or
something like that, but a console application shouldn't have to do that.

AFAIK, you can intercept a WM_CLOSE in a console app by adding a CTRL-C handler (via SetConsoleCtrlHandler).

Ciao,
Riccardo




reply via email to

[Prev in Thread] Current Thread [Next in Thread]