From: SourceForge.net <no...@so...> - 2007-06-15 23:05:33
|
Patches item #1460215, was opened at 2006-03-28 14:21 Message generated for change (Settings changed) made by bdhc73a You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=600360&aid=1460215&group_id=92327 Please note that this message will contain a full copy of the comment thread, including the initial issue submission, for this request, not just the latest update. Category: None Group: None >Status: Closed >Resolution: Accepted Priority: 5 Private: No Submitted By: Dmitry Yakimov (forther) Assigned to: Nobody/Anonymous (nobody) Summary: It adds support of only one instance of an application Initial Comment: Small and usefull patch (especially for Pocket PC where almost every application is a single-instance). It just adds a necessary API and hello application could be: int SmartWinMain( Application & app ) { HelloWinClass * testHello = new HelloWinClass; if( !Application::IsAppAlreadyRunning() ) { testHello->initAndCreate(); return app.run(); } else { testHello->ActivatePreviousInstance(); return 0; } } Quite easy to understand and it is flexible too. Please feel free to include to 2.0 version. ---------------------------------------------------------------------- Comment By: Dmitry Yakimov (forther) Date: 2006-03-29 07:51 Message: Logged In: YES user_id=134416 Oh, I forgot to include all the patch, so here is a new one. Thanks, it is great to hear that this patch will be in smartwin. ---------------------------------------------------------------------- Comment By: Thomas Hansen (polterguy) Date: 2006-03-29 03:17 Message: Logged In: YES user_id=868615 Howdy, I think you forgot to sen in the diff for the Application.cpp...?? .t ---------------------------------------------------------------------- Comment By: Thomas Hansen (polterguy) Date: 2006-03-29 02:54 Message: Logged In: YES user_id=868615 This is really great Dmitry! :) In fact a couple of weeks ago my collegue asked me if we could include this type of functionality in our Pocket PC client since sometimes you run the risc of hiding the main window without any other ways to "showing" it then going to running programs and choose activate. This made people often without realizing it fire up a second instance of our application... This will go directly into not only the CVS but also as a feature in my Pocet PC application in my "commercial" life! :) .t ---------------------------------------------------------------------- You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=600360&aid=1460215&group_id=92327 |