Hi!
I'm coding a time-logging system that starts other apps (using 'Shell'), and/or switches to already started apps upon the click of a button. Now, some applications CAN start multiple sessions (like terminal emulators, Word, Excel), and in order to save memory, I'd like my application to simply start another 'document' instead of another instance of the executable. I suppose I could use DDE to accomplish the 'startup', and I can also get a grip on the window handle, but here's s'more:
1) I want the 'shelling' app to react when the user switches between document windows in the MDI app.
2) I want to activate a given window in the MDI app if it's already started.
Is there a better way than DDE? Something more 'modern', perhaps, yet memory-lean and snappy? ;-)
/Cy
I'm coding a time-logging system that starts other apps (using 'Shell'), and/or switches to already started apps upon the click of a button. Now, some applications CAN start multiple sessions (like terminal emulators, Word, Excel), and in order to save memory, I'd like my application to simply start another 'document' instead of another instance of the executable. I suppose I could use DDE to accomplish the 'startup', and I can also get a grip on the window handle, but here's s'more:
1) I want the 'shelling' app to react when the user switches between document windows in the MDI app.
2) I want to activate a given window in the MDI app if it's already started.
Is there a better way than DDE? Something more 'modern', perhaps, yet memory-lean and snappy? ;-)
/Cy