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: 56
Joined: Sun May 05, 2019 7:12 am

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

Post by mxoliveira73 »

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: 7481
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 »

Hi,
Look at wxSingleInstanceChecker.

Thank you.
mxoliveira73
Experienced Solver
Experienced Solver
Posts: 56
Joined: Sun May 05, 2019 7:12 am

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

Post by mxoliveira73 »

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