Click here to Skip to main content
Rate this: bad
good
Please Sign up or sign in to vote.
See more: VC8.0
I want use CreateEvent (multiple times and independent from each other) to
create some 20 events.
 
Is it possible? If so, how ? Any example?
Posted 2-Mar-11 19:54pm
Edited 2-Mar-11 20:41pm
v2
Comments
SAKryukov at 3-Mar-11 0:59am
   
Language, platform..?! Oh, I see, it must be native Windows...
--SA
Gokulnath007 at 3-Mar-11 1:06am
   
QT...
SAKryukov at 3-Mar-11 1:13am
   
Qt is not a platform!
Sorry, I already answered in Windows before you answered. So, if this is VC, it means you're using QT with Windows? And C++? OK, my answer is about Windows API events. It may or may not be applicable...
(I have only rudimentary Qt experience, a while ago...)
--SA
Gokulnath007 at 3-Mar-11 1:47am
   
I just want some example of createevent.. May be upto 10 events
SAKryukov at 3-Mar-11 2:08am
   
Code example in my second reference. Did you read it?
--SA
Gokulnath007 at 3-Mar-11 1:57am
   
How to check whether the event is created successfully or not??
SAKryukov at 3-Mar-11 2:03am
   
Read my reference again, it answers.
Gokulnath007 at 3-Mar-11 2:00am
   
Waitfor multipleobject returns -1. how to resolve it.. pls help me
SAKryukov at 3-Mar-11 2:07am
   
Wow! Now read on WaitForXXX -- the answer is clear!
 
By the way, not, after you response I know my answer is correct.
 
--SA
Gokulnath007 at 3-Mar-11 2:09am
   
waitforxxx??
SAKryukov at 3-Mar-11 2:12am
   
Gokulnath007, I need to talk to you.
 
It looks like you do not concentrate and waste my time. Read Answers carefully before asking a new one. Now I understand why you don't accept Answers. You don't work on them, don't clarify or respond properly otherwise. If you do not cooperate properly, you won't get any help.
 
I wish you the best, but you should work in your own stuff accordingly.
 
--SA

1 solution

Rate this: bad
good
Please Sign up or sign in to vote.

Solution 1

Of course you can!
 
I cannot see why not. I cannot see why. You don't need any code: just call this: http://msdn.microsoft.com/en-us/library/ms682396(v=vs.85).aspx[^], but you probably know this already. Did you see this code sample: http://msdn.microsoft.com/en-us/library/ms686915(v=vs.85).aspx[^]? I think this is clear.
 
Unfortunately, it would not help you if you don't understand the purpose. (I suspect you don't, otherwise you would not ask this Question.)
 
Unfortunately, I cannot help you any further, because I don't know your goals and your idea. What do you want to do with events.
 
So, I'm puzzled about the purpose of your Question. I you have more sensible Question, don't hesitate to ask — I create those event all the time albeit not in such big numbers. Smile | :)
 
—SA
  Permalink  
v3
Comments
Sandeep Mewara at 3-Mar-11 1:43am
   
5! for investing so much time and effort on a question not well formulated.
 
BTW, if you have not noticed, OP has asked some good amount of QT questions till date. Not sure the level of them (as I don't know Qt), but few sounded simple. Keeping this apart, OP has hardly closed any question till date.
 
Earlier, I already suggested him to read/learn about it. Don't know if that was even thought of or totally ignored. :doh:
SAKryukov at 3-Mar-11 2:05am
   
Thank you, Sandeep.
I can see that my answer is correct, base on next comment of OP.
I'll removed my disclaimer.
--SA
SAKryukov at 3-Mar-11 2:16am
   
Thanks for bringing the issues to my attention. After your comment I reviewed a history of a few Questions by OP and now understand what's going on. I found appropriate to warn and request decent collaboration from OP, see my comment to the Question. This is a candidate for blacklisting.
--SA
Sandeep Mewara at 3-Mar-11 2:43am
   
This is a candidate for blacklisting.
Already on my list, so told you.
SAKryukov at 3-Mar-11 3:01am
   
OK, thanks again.
--SA
Gokulnath007 at 3-Mar-11 5:52am
   
thank you
SAKryukov at 3-Mar-11 10:56am
   
You're welcome. Please, pay attention.
Will formally accept my answer this time?
--SA

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

  Print Answers RSS
0 Sergey Alexandrovich Kryukov 575
1 Kornfeld Eliyahu Peter 409
2 Maciej Los 369
3 DamithSL 196
4 OriginalGriff 188
0 OriginalGriff 6,353
1 DamithSL 4,854
2 Maciej Los 4,466
3 Kornfeld Eliyahu Peter 4,058
4 Sergey Alexandrovich Kryukov 3,897


Advertise | Privacy | Mobile
Web03 | 2.8.141220.1 | Last Updated 3 Mar 2011
Copyright © CodeProject, 1999-2014
All Rights Reserved. Terms of Service
Layout: fixed | fluid

CodeProject, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100