Results 1 to 3 of 3

Thread: Detecting a previous instance of an Application

  1. #1
    amac
    Guest

    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.

  2. #2
    Monday Morning Lunatic parksie's Avatar
    Join Date
    Mar 2000
    Location
    Mashin' on the motorway
    Posts
    8,169
    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

  3. #3
    amac
    Guest
    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
  •  



Click Here to Expand Forum to Full Width