[Interest] Preventing Multiple Instances of EXE
Scott Aron Bloom
scott at towel42.com
Fri Apr 22 23:54:43 CEST 2016
I have used this in previous projects, it works very well in a multi-platform product as well..
Scott
From: Interest [mailto:interest-bounces+scott.bloom=onshorecs.com at qt-project.org] On Behalf Of Yuvraaj
Sent: Friday, April 22, 2016 12:37 PM
To: interest at qt-project.org
Subject: Re: [Interest] Preventing Multiple Instances of EXE
Maybe this will help:
https://github.com/qtproject/qt-solutions/tree/master/qtsingleapplication
On 04/22/2016 12:07 PM, Jason Kretzer wrote:
Everyone,
Anyone know how to prevent multiple instances of an exe to be started? So, I start bob.exe. I then I try to double click and start bob.exe again while the first is still running and a second instance does not start (or at least shuts itself down or does anything other than start another instance).
Is there a Qt/C++ on Windows way to do that?
//------------------------------//
Jason R. Kretzer
Lead Application Developer
Jason at gocodigo.com<mailto:Jason at gocodigo.com>
//------------------------------//
"quidquid latine dictum sit altum videtur"
_______________________________________________
Interest mailing list
Interest at qt-project.org<mailto:Interest at qt-project.org>
http://lists.qt-project.org/mailman/listinfo/interest
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.qt-project.org/pipermail/interest/attachments/20160422/cf00d4e2/attachment.html>
More information about the Interest
mailing list