PDA

Click to See Complete Forum and Search --> : Detecting a previous instance of an Application


amac
Sep 11th, 2001, 07:33 AM
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.

parksie
Sep 11th, 2001, 01:40 PM
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.

amac
Sep 11th, 2001, 09:20 PM
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...