Click here to Skip to main content
16,004,836 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: How to open an .trp file using thread? Pin
AnithaSubramani10-Aug-08 20:49
AnithaSubramani10-Aug-08 20:49 
GeneralRe: How to open an .trp file using thread? Pin
SandipG 10-Aug-08 21:18
SandipG 10-Aug-08 21:18 
GeneralRe: How to open an .trp file using thread? Pin
_AnsHUMAN_ 10-Aug-08 21:33
_AnsHUMAN_ 10-Aug-08 21:33 
QuestionCreate registration dialog in SDI mfc application. Pin
Le@rner10-Aug-08 19:52
Le@rner10-Aug-08 19:52 
AnswerRe: Create registration dialog in SDI mfc application. Pin
_AnsHUMAN_ 10-Aug-08 20:04
_AnsHUMAN_ 10-Aug-08 20:04 
QuestionRe: Create registration dialog in SDI mfc application. Pin
Rajesh R Subramanian10-Aug-08 20:11
professionalRajesh R Subramanian10-Aug-08 20:11 
Questionrun threads after a fix interval , this interval can be different for different threads Pin
anilaabc10-Aug-08 19:15
anilaabc10-Aug-08 19:15 
AnswerRe: run threads after a fix interval , this interval can be different for different threads Pin
Mark Salsbery10-Aug-08 20:55
Mark Salsbery10-Aug-08 20:55 
You could use an auto-reset event for each thread that the
corresponding thread waits on until it's signaled by a timer.
// pseudocode

// The timer could be a simple SetTimer() timer or a multimedia timer
// depending on the timer accuracy you need

OnTimer 
{
   for each threadstartevent in arrayofthreadstartevents
      SetEvent(threadstartevent)
}

threadproc
{
   while (false == threadshouldterminate)
   {
      wait for event
      do some processing
   }
}

You could instead use a single manual-reset event to release all the waiting threads
at "the same time" but then you need some scheme to get the last thread that
completes its task to reset the event. The other threads would need to wait
for the last thread to complete.

Mark Salsbery
Microsoft MVP - Visual C++

Java | [Coffee]

QuestionAdmin privillage in limited account Pin
pooja_friends10-Aug-08 19:14
pooja_friends10-Aug-08 19:14 
QuestionLinking C library in C++ application Pin
Yashusid10-Aug-08 18:57
Yashusid10-Aug-08 18:57 
AnswerRe: Linking C library in C++ application Pin
Stephen Hewitt10-Aug-08 21:37
Stephen Hewitt10-Aug-08 21:37 
Questionallocating and deallocating memory Pin
anilaabc10-Aug-08 18:45
anilaabc10-Aug-08 18:45 
AnswerRe: allocating and deallocating memory Pin
Randor 10-Aug-08 18:53
professional Randor 10-Aug-08 18:53 
GeneralRe: allocating and deallocating memory Pin
anilaabc10-Aug-08 19:09
anilaabc10-Aug-08 19:09 
GeneralRe: allocating and deallocating memory Pin
Randor 10-Aug-08 19:21
professional Randor 10-Aug-08 19:21 
GeneralRe: allocating and deallocating memory Pin
anilaabc10-Aug-08 19:38
anilaabc10-Aug-08 19:38 
GeneralRe: allocating and deallocating memory Pin
Randor 10-Aug-08 19:57
professional Randor 10-Aug-08 19:57 
GeneralRe: why system restarted with message Pin
anilaabc10-Aug-08 20:18
anilaabc10-Aug-08 20:18 
GeneralRe: why system dump memory [modified] Pin
anilaabc10-Aug-08 21:10
anilaabc10-Aug-08 21:10 
Question[Message Deleted] Pin
knowvc10-Aug-08 18:34
knowvc10-Aug-08 18:34 
AnswerRe: USB Project Pin
knowvc10-Aug-08 20:09
knowvc10-Aug-08 20:09 
Questionerror LNK2019: unresolved external symbol question Pin
monsieur_jj10-Aug-08 17:01
monsieur_jj10-Aug-08 17:01 
QuestionRe: error LNK2019: unresolved external symbol question Pin
rp_suman10-Aug-08 18:28
rp_suman10-Aug-08 18:28 
AnswerRe: error LNK2019: unresolved external symbol question Pin
monsieur_jj10-Aug-08 18:33
monsieur_jj10-Aug-08 18:33 
GeneralRe: error LNK2019: unresolved external symbol question Pin
monsieur_jj10-Aug-08 19:11
monsieur_jj10-Aug-08 19:11 

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.