|
-
Sep 11th, 2001, 07:33 AM
#1
Detecting a previous instance of an Application
I was wondering if anyone has used CreateMutex() to determine whether or not there is a previous isntance of an application running.
I guess I have a few questions... what is a mutex object?
... ehh I think I just realized how to do it... but I would still like to know what a mutex object is... if anyone knows.
-
Sep 11th, 2001, 01:40 PM
#2
Monday Morning Lunatic
I used them 
It means: Mutually Exclusive
And the meaning of what the name means: You can only have one You use WaitForSingleObject to wait until the mutex is available and then continue with your app.
I refuse to tie my hands behind my back and hear somebody say "Bend Over, Boy, Because You Have It Coming To You".
-- Linus Torvalds
-
Sep 11th, 2001, 09:20 PM
#3
Ahh... that makes sense.
Thank you.
I have another question for you... I am fairly new to Win32 programming without using MFC... I find using the API is much more satisfying...
Anyway... I was wondering when you are creating a Win32 application how you divide everything up... I cant see you putting everything into one file. I have some ideas for myself... but you seem to have more experience on this sort of thing... I was just how you organize you programs?
Maybe there are some tips I as well as other could use...
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
|