Detecting a running instance under Windows works (was: Re: [Geany] Removed old FIFO code)

Alexandre Moreira alexandream at xxxxx
Tue Sep 12 13:21:30 UTC 2006


I hate when I do that... Forwarding the message since, once again, I
answered it to the poster, instead to the list. Sorry, folks :(

Regards,
Alexandre Moreira.

---------- Forwarded message ----------
2006/9/11, Enrico Tröger <enrico.troeger at uvena.de>:
[...snip...]
> Yestderday I got my laptop with a running Windows back and today I got
> the socket running under Windows(wasn't much work).
> It seems to work, even under Windows XP with enabled firewall. But I
> didn't test it very well.
>
> And Alexandre, if you succeed in learning about DDE, I'd give it a try
> although the socket code seems to work.

I have a basic DDE + Gtk+ code running, although it is in a machine
without Network access, and I'll only have acess to it in about a
week... living in many different places is weird, you know (lol)

But, anyways, I don't think you would like the solution so far, as it
involves a big chunk of boilerplate code (It needs an invisible Win32
Window, and the Gtk+ main() running inside a glib_thread). I'll post
it here whenever I have the chance to fetch the code and put it
online.

If I recall correctly the boilerplate code needed to get GTk+ running
inside a Win32 Application is something between 50 ~ 100 lines of
code. The real problem is that I don't know how Geany would behave
with this extra thread in the application ... and perhaps this would
somehow "violate" Geany's "Keep it Simple" filosophy

For now I think the socket code, although not very "orthodox", would do the job.

> Regards,
> Enrico

Regards,
Alexandre Moreira.



More information about the Users mailing list