-
September 7th, 2007, 05:09 AM
#1
About opening exe
Is there is any way to open the exe(executable) only once. when tried to open the exe next time it should not be opened.
-
September 7th, 2007, 05:30 AM
#2
Re: About opening exe
FindWindow is what u want .
Little by little one goes far
Keep moving.......!
Nothing is impossible !
-
September 7th, 2007, 05:38 AM
#3
Re: About opening exe
Originally Posted by sunny_sz
FindWindow is what u want .
Wrong!
The correct way is described in J.Newcomer's essay Avoiding Multiple Instances of an Application
Last edited by VictorN; September 7th, 2007 at 07:22 AM.
Victor Nijegorodov
-
September 7th, 2007, 07:06 AM
#4
Re: About opening exe
Originally Posted by VictorN
I wanna know why that is wrong ?? Pls. advise !
Little by little one goes far
Keep moving.......!
Nothing is impossible !
-
September 7th, 2007, 07:21 AM
#5
Re: About opening exe
Joe Newcomer described it very good in the essay I referred to in my previous post.
Is it so hard to read it?
PS.
OK, the simplest example: application is windowless.
More complicated example: application needs (for some reasons) some time to create the main window, and during this time period user started this application again.
Victor Nijegorodov
-
September 7th, 2007, 07:37 AM
#6
Re: About opening exe
But what veerakalai want is that when a window(e.g. a .exe file is running) is running , if user open it again , it should not be opened again, I mean , by using findwindow function, we may find this window of this .exe file and check whether this file is running or not , if we find this handle of this window, we can prevent it opened again, right ??
Little by little one goes far
Keep moving.......!
Nothing is impossible !
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|