Greenu Sharma
July 15th, 2001, 11:46 PM
is it possible to find the previous instance of my embedded vb 3 application?
Please help me
Please help me
|
Click to See Complete Forum and Search --> : Find Previous instance of Application? Greenu Sharma July 15th, 2001, 11:46 PM is it possible to find the previous instance of my embedded vb 3 application? Please help me poobal July 16th, 2001, 12:11 AM Hi Greenu Sharma ! I think you can use App object. App.PrevInstance will give the solution for you. I hope this may help you. -Poobal Do what you Love to do and Commit Yourself to doing it in an Excellent Fashion Cimperiali July 16th, 2001, 02:20 AM If it has a window fith fixed caption, use findWindow Api (app.previnstance works only in same workspace/dir of startup) Special thanks to Lothar "the Great" Haensler, Tom Archer, Chris Eastwood, Bruno Paris and all the other wonderful people who made and make Codeguru a great place. Come back soon, you Gurus. Greenu Sharma July 16th, 2001, 05:01 AM Hi, Actually am working on embedded Vb 3 in which the app.prevInstance is not working properly. My mission is to avoid duplicate instance of a particular exe. when i tried to open twice the same exe the windows CE is giving an error "cannot open file " I too want the same thing but i want to suppress this message box . how can i do this ? please help me Greenu myron January 31st, 2005, 03:43 AM I just curious, is FindWindow the best solution for this kind of case? cjard January 31st, 2005, 11:58 AM myron; this question was asked 3 years ago, about a pretty much defunct VB3 ... surely there were other more recent articles you could have searched? FindWindow finds you a window starting with that exact text.. I have a module that searches for windows starting with some certain text, but still it's not totally reliable because if you have an Explorer window open showing some folder name that is same as your app then it thinks the Explorer folder is your app.. you can look in the process list instead for EXE named the same as yours.. codeguru.com
Copyright Internet.com Inc., All Rights Reserved. |