How to allow only one instance of my C++ and WxWidgets application? Topic is solved

If you are using the main C++ distribution of wxWidgets, Feel free to ask any question related to wxWidgets development here. This means questions regarding to C++ and wxWidgets, not compile problems.
Post Reply
mxoliveira73
Experienced Solver
Experienced Solver
Posts: 54
Joined: Sun May 05, 2019 7:12 am

How to allow only one instance of my C++ and WxWidgets application?

Post by mxoliveira73 » Tue Jul 23, 2019 9:34 pm

How is the way more easilly to allow only one instance running? In other words: if app is running, disallow other instance when the user click in .exe... Wxwidgets have something to it? Or is solved in C++?

ONEEYEMAN
Part Of The Furniture
Part Of The Furniture
Posts: 3594
Joined: Sat Apr 16, 2005 7:22 am
Location: USA, Ukraine

Re: How to allow only one instance of my C++ and WxWidgets application?

Post by ONEEYEMAN » Tue Jul 23, 2019 9:52 pm

Hi,
Look at wxSingleInstanceChecker.

Thank you.

mxoliveira73
Experienced Solver
Experienced Solver
Posts: 54
Joined: Sun May 05, 2019 7:12 am

Re: How to allow only one instance of my C++ and WxWidgets application?

Post by mxoliveira73 » Tue Jul 23, 2019 10:39 pm

There is simple solution in WxWidgets.... it works fine.... wonderfull. thanks ONEEYEMAN...

Post Reply