RE: [GD-Windows] DDE Event not showing up
Brought to you by:
vexxed72
From: Jon W. <hp...@mi...> - 2001-10-07 17:24:11
|
Thanks. The following MSDN article talks about the Mutex approach. http://support.microsoft.com/support/kb/articles/Q243/9/53.ASP Note that if the mutex already exists, you don't get back some convenient handle to the other instance; this specific technique is only useful to determine _whether_ another instance is running. It seems weird if DDE is fundamentally broken; it's used by a lot of apps and has been around forever... but that doesn't mean much these days :-/ Cheers, / h+ > -----Original Message----- > From: gam...@li... > [mailto:gam...@li...]On Behalf Of > Aaron Hilton > Sent: Sunday, October 07, 2001 4:42 AM > To: GDWindows > Subject: Re: [GD-Windows] DDE Event not showing up > > > Oops.. darn reply-to crap. > Here's my proper message. > ---- > For the case of not using a DDE I understand a mutex is used. I'm not > entirely sure of the details, but essentially if a mutex (semaphore) is > already locked, then you get what application locked the mutex (the > other instance) and send that app the activation message then close. > > It's a quick 10-15 lines of code. I've seen it used a long while back, > so I'm fuzzy on how it all works. > > The benefit, You guarantee the app refuses to launch twice, unless > specifically requested. And it appears to be the official way MS deals > with the double-launch problem too. Could one of the MS experts help > elaborate? I would really like to refresh here too. > > I don't trust the DDE implementation because of some flaky problems I've > had writing remote control stuff for WinAmp's DDE interface. Yuck.. I > think DDE is either broken on some versions of windows, therefore > undependable and useless, or maybe I was struck with WinAmp misbehaving > on certain platforms. > > Good luck... > - Aaron. > > Jon Watte wrote: > > > > This has puzzled me and some other fellows for a while; I hope > some of you > > smart people know the answer! > > > > In an app we're working on, a regular Windows app is started > from a web page > > by registering a MIME type to IE, which starts the app, and having the > > browser send DDE data to the application. > > > > However, sometimes when the app gets started from the link, it > takes about > > 30-60 seconds until the DDE data arrives. However, if I click > the window, > > the data will arrive immediately. This is a major drag, as the > application > > will just sit idle and dull until the data arrives. > > > > I'd prefer to stay with DDE because it handles the case of > clicking a link > > while the app is already open. However, if you can think of > some other way > > of accomplishing something similar, including some kind of gross hack, > > that'd be swell too, as this is only an in-house tool kind of thing. > > > > Cheers, > > > > / h+ > > > > _______________________________________________ > > Gamedevlists-windows mailing list > > Gam...@li... > > https://lists.sourceforge.net/lists/listinfo/gamedevlists-windows > > _______________________________________________ > Gamedevlists-windows mailing list > Gam...@li... > https://lists.sourceforge.net/lists/listinfo/gamedevlists-windows > |