Click here to Skip to main content
15,919,479 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: Xml parsing using c++ Pin
Garth J Lancaster28-Nov-08 23:30
professionalGarth J Lancaster28-Nov-08 23:30 
AnswerRe: Xml parsing using c++ Pin
Rolf Kristensen29-Nov-08 5:52
Rolf Kristensen29-Nov-08 5:52 
AnswerRe: Xml parsing using c++ Pin
Jijo.Raj29-Nov-08 6:00
Jijo.Raj29-Nov-08 6:00 
AnswerRe: Xml parsing using c++ Pin
Peter Weyzen29-Nov-08 8:36
Peter Weyzen29-Nov-08 8:36 
AnswerRe: Xml parsing using c++ Pin
Hamid_RT30-Nov-08 1:27
Hamid_RT30-Nov-08 1:27 
QuestionDoes the applications those support online updating usually use COM? Pin
followait28-Nov-08 22:55
followait28-Nov-08 22:55 
Questionthread confusions Pin
anilaabc28-Nov-08 22:07
anilaabc28-Nov-08 22:07 
AnswerRe: thread confusions Pin
sashoalm29-Nov-08 0:12
sashoalm29-Nov-08 0:12 
anilaabc wrote:
1.when a thread complete its execution ,can we restart its execution using same handle ?


I don't think so. Once a thread is finished, it's handle should become invalid.

anilaabc wrote:
2.when a thread complete its execution is it cosuming resources?


Yes. Also when it starts its execution. It has to allocate/deallocate its stack, at least.

anilaabc wrote:
3.I need to do multiple tasks at the same time ,so I need to work in threads.as i have to repeate these tasks at regular interval so i have to start same threads ,time is critical so i m using multimedia timer to start threads at regular interval .
problem is I have to create a new thread after a regular interval.I think it will consume resources . How could I use same threads to run at regular interval ????????????????


AFAIK there's no simple way to do that. You can create a thread that waits for a message or an event, and then executes a task in response to that message (or event). But you have to take care of the communication mechanism yourself.

There is sufficient light for those who desire to see, and there is sufficient darkness for those of a contrary disposition.
Blaise Pascal

AnswerRe: thread confusions Pin
Code-o-mat29-Nov-08 0:20
Code-o-mat29-Nov-08 0:20 
AnswerRe: thread confusions Pin
Mark Salsbery29-Nov-08 7:20
Mark Salsbery29-Nov-08 7:20 
GeneralRe: thread confusions Pin
anilaabc30-Nov-08 22:20
anilaabc30-Nov-08 22:20 
GeneralRe: thread confusions Pin
Mark Salsbery1-Dec-08 5:43
Mark Salsbery1-Dec-08 5:43 
GeneralRe: thread confusions Pin
anilaabc1-Dec-08 22:08
anilaabc1-Dec-08 22:08 
QuestionI want to run thread at regular interval in multimedia timer,how should i do?please tell me the better approch Pin
anilaabc28-Nov-08 21:29
anilaabc28-Nov-08 21:29 
AnswerRe: I want to run thread at regular interval in multimedia timer,how should i do?please tell me the better approch Pin
Garth J Lancaster28-Nov-08 23:43
professionalGarth J Lancaster28-Nov-08 23:43 
GeneralRe: I want to run thread at regular interval in multimedia timer,how should i do?please tell me the better approch Pin
anilaabc30-Nov-08 22:15
anilaabc30-Nov-08 22:15 
QuestionHow to use delete for CStringList Pin
Max++28-Nov-08 19:04
Max++28-Nov-08 19:04 
AnswerRe: How to use delete for CStringList Pin
Mark Salsbery28-Nov-08 19:16
Mark Salsbery28-Nov-08 19:16 
QuestionTerminating threads cleanly in a DLL when it is unloaded Pin
Code-o-mat28-Nov-08 11:19
Code-o-mat28-Nov-08 11:19 
AnswerRe: Terminating threads cleanly in a DLL when it is unloaded Pin
Mark Salsbery28-Nov-08 11:57
Mark Salsbery28-Nov-08 11:57 
GeneralRe: Terminating threads cleanly in a DLL when it is unloaded Pin
Code-o-mat28-Nov-08 12:20
Code-o-mat28-Nov-08 12:20 
GeneralRe: Terminating threads cleanly in a DLL when it is unloaded Pin
Randor 28-Nov-08 12:37
professional Randor 28-Nov-08 12:37 
GeneralRe: Terminating threads cleanly in a DLL when it is unloaded Pin
Code-o-mat29-Nov-08 0:23
Code-o-mat29-Nov-08 0:23 
GeneralRe: Terminating threads cleanly in a DLL when it is unloaded Pin
Randor 29-Nov-08 17:24
professional Randor 29-Nov-08 17:24 
AnswerRe: Terminating threads cleanly in a DLL when it is unloaded Pin
Richard Andrew x6428-Nov-08 12:40
professionalRichard Andrew x6428-Nov-08 12:40 

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.