 |
|
 |
this is a word by word copy of microsoft article at http://support.microsoft.com/default.aspx?scid=kb;EN-US;q243953
|
|
|
|
 |
|
 |
of whiners... I never knew about this article, so I thank the author for pointing it out. It really did help me.
|
|
|
|
 |
|
 |
Whatever it is I like this code and I will use it in my program.
Thanks alot for this code sharing.
|
|
|
|
 |
|
 |
i assume this code does not work with multiple users logged in, right?...
in winxp, you can have a program running, do a fast user switch, and run the same program again? i have been trying to do this but the mutex does not seem to work...
|
|
|
|
 |
|
 |
Prefix the mutex name with "Global\" to make it viewable in all user sessions. See MSDN for more details.
--Mike--
Actual sign at the laundromat I go to: "No tinting or dying"
Like the Google toolbar? Then check out UltraBar, with more features & customizable search engines!
My really out-of-date homepage
Big fan of Alyson Hannigan and Jamie Salé.
|
|
|
|
 |
|
|
 |
|
 |
What's the point to use UUIDGEN.EXE to create a mutex name since
you may create any other name?
HANDLE hMutex = CreateMutex(NULL, FALSE, _T("MyApplication_MutexName"));
is also valid. Anyway, I still can see a use for it but should we really care!?!?
"Dirty hands lead to important discovery..." - Thomas Edison
|
|
|
|
 |
|
 |
Easy: Somebody else might accidentally create the same mutex because the application has the same name. In this case, those two applications would not run at the same time.
By using GUID you can be pretty positive, that this does not happen.
|
|
|
|
 |
|
 |
Hey, If you can't come up with a name that will be unique you need to take some classes in creativity.
|
|
|
|
 |
|
 |
This code won't work if the application can run as a service or interactively.
Tim Smith
I know what you're thinking punk, you're thinking did he spell check this document? Well, to tell you the truth I kinda forgot myself in all this excitement. But being this here's CodeProject, the most powerful forums in the world and would blow your head clean off, you've got to ask yourself one question, Do I feel lucky? Well do ya punk?
|
|
|
|
 |
|
 |
Hey,
I just want all my friend on another country can get it. Maybe I'm not a good programmer but i want share ....
That's all.
|
|
|
|
 |
|
 |
I am not sure what to say - it seems like the whole article is actually "written by Microsoft" (Q243953), which probably contributes to the poor rating...
Actually the MS article is better - it contains one more sample for Win32 SDK application.
So, how about making some more research on the subject, try to explain how exactly it works and then maybe you get more 5s than 1s, because anybody can rip off the code from MSDN and claim to write such an "article" ?
|
|
|
|
 |
|
 |
uhm...
I just want everybody can find it easily b'cuz many and many person come here to search code.
That's all.
Thanks your comments.
|
|
|
|
 |
|
 |
bigZidane wrote:
I just want everybody can find it easily b'cuz many and many person come here to search code.
Actually come to think of it you should just move the article to the "Programming Tips" section where it seem to belong.
|
|
|
|
 |
|
 |
I really don't know why you say that. I just want everybody can find it easily.
That's all.
|
|
|
|
 |
|
 |
Ditto. It's a waste of space.
|
|
|
|
 |
|
 |
I think it did not waste.b'cuz it's too small.
|
|
|
|
 |
|
 |
This article has help me.
Thanks
|
|
|
|
 |
|
 |
Ditto copy of article at http://support.microsoft.com/default.aspx?scid=kb;EN-US;q243953
perhaps you should take a look at that
|
|
|
|
 |