Click here to Skip to main content
15,903,030 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: creating an array of objects dynamically Pin
toxcct20-Sep-06 4:35
toxcct20-Sep-06 4:35 
QuestionCFile Pin
Sonia Horra20-Sep-06 1:39
Sonia Horra20-Sep-06 1:39 
AnswerRe: CFile Pin
_AnsHUMAN_ 20-Sep-06 1:42
_AnsHUMAN_ 20-Sep-06 1:42 
GeneralRe: CFile Pin
Sonia Horra20-Sep-06 2:52
Sonia Horra20-Sep-06 2:52 
GeneralRe: CFile Pin
Hamid_RT20-Sep-06 7:36
Hamid_RT20-Sep-06 7:36 
AnswerRe: CFile Pin
pavan_sw20-Sep-06 20:53
pavan_sw20-Sep-06 20:53 
QuestionAbout windows Events Pin
janadhana20-Sep-06 1:09
janadhana20-Sep-06 1:09 
AnswerRe: About windows Events Pin
Mr.Brainley20-Sep-06 2:21
Mr.Brainley20-Sep-06 2:21 
I do not know of such a function. Try using a Semaphore instead. Initialize it whith a value of 1. Whenever an instance of App2 wants to Signal App1, it decreases the Semaphore by one and then signals to App1 using the Event. App1 then checks the Semaphore. If it is 0, then it does all its calculation, resets the even (better would be an auto-reset event), and then increases the semaphore again. This way, you automatically implement a queue for all instances of App2, that want to signal App1. No signal is lost. Of course, i do not know if that was what you intended.
If you wanted to check because of performance issues, you can neglect that. Conditional execution creates performanceoverhead itself, and a vain call to SetEvent() will not matter. In any case App2 should not be the one to reset the Event. App1 should always do that, to indicate that it is waiting.

Hope that helped a little.
GeneralRe: About windows Events Pin
janadhana21-Sep-06 2:04
janadhana21-Sep-06 2:04 
QuestionA Simple Namespace Extension Question Pin
Dave Kerr20-Sep-06 0:57
Dave Kerr20-Sep-06 0:57 
QuestionCan I call the open folder dialog directly? Pin
BarryOg20-Sep-06 0:40
BarryOg20-Sep-06 0:40 
AnswerRe: Can I call the open folder dialog directly? Pin
Christian Graus20-Sep-06 0:51
protectorChristian Graus20-Sep-06 0:51 
QuestionRe: Can I call the open folder dialog directly? Pin
BarryOg20-Sep-06 0:59
BarryOg20-Sep-06 0:59 
AnswerRe: Can I call the open folder dialog directly? Pin
Haroon Sarwar20-Sep-06 1:27
Haroon Sarwar20-Sep-06 1:27 
GeneralRe: Can I call the open folder dialog directly? Pin
BarryOg20-Sep-06 2:01
BarryOg20-Sep-06 2:01 
QuestionProfiling help request. Pin
cpp_prgmer20-Sep-06 0:33
cpp_prgmer20-Sep-06 0:33 
AnswerRe: Profiling help request. Pin
Dave Kerr20-Sep-06 1:12
Dave Kerr20-Sep-06 1:12 
GeneralRe: Profiling help request. Pin
cpp_prgmer20-Sep-06 1:21
cpp_prgmer20-Sep-06 1:21 
Questionconnecting client to server Pin
Muhammad Azeem Azam20-Sep-06 0:03
Muhammad Azeem Azam20-Sep-06 0:03 
AnswerRe: connecting client to server Pin
saania khan21-Sep-06 19:20
saania khan21-Sep-06 19:20 
GeneralRe: connecting client to server Pin
Muhammad Azeem Azam21-Sep-06 21:39
Muhammad Azeem Azam21-Sep-06 21:39 
GeneralRe: connecting client to server Pin
Muhammad Azeem Azam21-Sep-06 21:50
Muhammad Azeem Azam21-Sep-06 21:50 
QuestionHow to color the splitterbar Pin
kiranin19-Sep-06 23:44
kiranin19-Sep-06 23:44 
QuestionCollapsable 3D Studio-esque menu system Pin
Graham Reeds19-Sep-06 23:37
Graham Reeds19-Sep-06 23:37 
AnswerRe: Collapsable 3D Studio-esque menu system Pin
Graham Reeds20-Sep-06 4:58
Graham Reeds20-Sep-06 4:58 

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.