Click here to Skip to main content
15,914,221 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
Generalavoiding multiple instances Pin
Mark Donkers18-Jan-02 4:55
Mark Donkers18-Jan-02 4:55 
GeneralRe: avoiding multiple instances Pin
Nish Nishant18-Jan-02 4:57
sitebuilderNish Nishant18-Jan-02 4:57 
GeneralRe: avoiding multiple instances Pin
Mark Donkers18-Jan-02 5:02
Mark Donkers18-Jan-02 5:02 
GeneralRe: avoiding multiple instances Pin
Joaquín M López Muñoz18-Jan-02 5:03
Joaquín M López Muñoz18-Jan-02 5:03 
GeneralRe: avoiding multiple instances Pin
Mark Donkers18-Jan-02 5:11
Mark Donkers18-Jan-02 5:11 
GeneralRe: avoiding multiple instances Pin
Joaquín M López Muñoz18-Jan-02 5:19
Joaquín M López Muñoz18-Jan-02 5:19 
GeneralRe: avoiding multiple instances Pin
Mark Donkers18-Jan-02 5:33
Mark Donkers18-Jan-02 5:33 
GeneralRe: avoiding multiple instances Pin
Joaquín M López Muñoz18-Jan-02 5:43
Joaquín M López Muñoz18-Jan-02 5:43 
thanks. I read the MSDN on CreateMutex, but I can't make heads or tails of what the difference is.
The difference is that when bInitialOwner is set to TRUE, the system gives ownership to the first process that creates the mutex, as if it has subsequently called WaitForSingleObject on the mutex handle. As ownership is not needed for your purposes (you are only resorting to mutexes as a convenient way to share global identifier across proceses), bInitialOwner is best left as FALSE (moreover, you'd have to expliciy call RelaseMutex later, which is not the same as closing the handle). Pff, what a messy explanation, hope you've understand something of it Smile | :)

To get the beige background enclose your code between <pre> and </pre> tags.

Regards


Joaquín M López Muñoz
Telefónica, Investigación y Desarrollo
GeneralRe: avoiding multiple instances Pin
Nish Nishant18-Jan-02 5:46
sitebuilderNish Nishant18-Jan-02 5:46 
GeneralRe: avoiding multiple instances Pin
Jon Hulatt18-Jan-02 5:48
Jon Hulatt18-Jan-02 5:48 
GeneralRe: avoiding multiple instances Pin
Nish Nishant18-Jan-02 6:57
sitebuilderNish Nishant18-Jan-02 6:57 
GeneralRe: avoiding multiple instances Pin
Joaquín M López Muñoz18-Jan-02 6:04
Joaquín M López Muñoz18-Jan-02 6:04 
GeneralRe: avoiding multiple instances Pin
Nish Nishant18-Jan-02 7:04
sitebuilderNish Nishant18-Jan-02 7:04 
GeneralRe: avoiding multiple instances Pin
Tim Smith18-Jan-02 7:20
Tim Smith18-Jan-02 7:20 
GeneralRe: avoiding multiple instances Pin
Joaquín M López Muñoz18-Jan-02 7:34
Joaquín M López Muñoz18-Jan-02 7:34 
GeneralRe: avoiding multiple instances Pin
Mark Donkers18-Jan-02 5:55
Mark Donkers18-Jan-02 5:55 
GeneralRe: avoiding multiple instances Pin
Joaquín M López Muñoz18-Jan-02 6:09
Joaquín M López Muñoz18-Jan-02 6:09 
GeneralRe: avoiding multiple instances Pin
Michael Dunn18-Jan-02 7:46
sitebuilderMichael Dunn18-Jan-02 7:46 
GeneralRe: avoiding multiple instances Pin
Nish Nishant18-Jan-02 5:44
sitebuilderNish Nishant18-Jan-02 5:44 
GeneralCheck if "Enter" hit Pin
Stan the man18-Jan-02 4:43
Stan the man18-Jan-02 4:43 
GeneralRe: Check if "Enter" hit Pin
Nish Nishant18-Jan-02 4:55
sitebuilderNish Nishant18-Jan-02 4:55 
GeneralRe: Check if "Enter" hit Pin
Roger Allen18-Jan-02 6:23
Roger Allen18-Jan-02 6:23 
GeneralEditing CListCtrl item Pin
Ken Goguen18-Jan-02 4:40
Ken Goguen18-Jan-02 4:40 
GeneralRe: Editing CListCtrl item Pin
Joaquín M López Muñoz18-Jan-02 4:54
Joaquín M López Muñoz18-Jan-02 4:54 
GeneralRe: Editing CListCtrl item Pin
Ken Goguen18-Jan-02 4:54
Ken Goguen18-Jan-02 4:54 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.