LDStructure 1.0.0.0


Re: LDStructure 1.1.0.0
#15
My german isn't that good Smile

What you want is block the extra instance(s) of LDStructure ?

In the program create a mutex as soon as possible using a semi unique name. When the creation of this mutex (handle) fails it means the mutex is already in use (created by another instance). So instead of continue starting the current LDStructure you send a message (broadcast really) to the existing one and terminate the (second) instance. The other (first started) instance will get the message (containing the command line params of the terminated instance) which you can use to add a tab / window or whatever.

This is basically it. You'll probably also need to look into handling cross application messages, kinda forgot about that Smile
Reply
« Next Oldest | Next Newest »



Messages In This Thread
LDStructure 1.0.0.0 - by Michael Heidemann - 2013-02-22, 22:37
Re: LDStructure - by Philippe Hurbain - 2013-02-23, 8:36
Re: LDStructure - by Michael Heidemann - 2013-02-23, 15:20
Re: LDStructure - by Roland Melkert - 2013-02-23, 18:34
Re: LDStructure - by Michael Heidemann - 2013-02-24, 7:51
Re: LDStructure - by Magnus Forsberg - 2013-02-24, 12:13
Re: LDStructure - by Michael Heidemann - 2013-02-24, 13:25
LDStructure 1.1.0.0 - by Michael Heidemann - 2013-03-09, 17:28
Re: LDStructure 1.1.0.0 - by Philippe Hurbain - 2013-03-09, 17:35
Re: LDStructure 1.1.0.0 - by Philippe Hurbain - 2013-03-09, 19:06
Re: LDStructure 1.1.0.0 - by Roland Melkert - 2013-03-10, 0:04
Re: LDStructure 1.1.0.0 - by Roland Melkert - 2013-03-10, 1:21
Re: LDStructure 1.1.0.0 - by Travis Cobbs - 2013-03-10, 7:09

Forum Jump:


Users browsing this thread: 1 Guest(s)