Click here to Skip to main content
15,912,205 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: how can I get the integer value of INSERT from keyboard?? Pin
Steen Krogsgaard24-Jun-08 22:14
Steen Krogsgaard24-Jun-08 22:14 
GeneralRe: how can I get the integer value of INSERT from keyboard?? Pin
danginkgo24-Jun-08 22:21
danginkgo24-Jun-08 22:21 
GeneralRe: how can I get the integer value of INSERT from keyboard?? Pin
Steen Krogsgaard24-Jun-08 22:31
Steen Krogsgaard24-Jun-08 22:31 
GeneralRe: how can I get the integer value of INSERT from keyboard?? Pin
danginkgo24-Jun-08 22:55
danginkgo24-Jun-08 22:55 
QuestionCDatabase::Close is not happening Pin
SelvaKr24-Jun-08 20:48
SelvaKr24-Jun-08 20:48 
AnswerRe: CDatabase::Close is not happening Pin
Niklas L24-Jun-08 23:56
Niklas L24-Jun-08 23:56 
QuestionKill a thread after a particular period of time. Pin
dolly24-Jun-08 20:21
dolly24-Jun-08 20:21 
AnswerRe: Kill a thread after a particular period of time. Pin
_AnsHUMAN_ 24-Jun-08 20:30
_AnsHUMAN_ 24-Jun-08 20:30 
Set a flag (eg bool isThreadToBeKilled = false) in thread B and keep thread A running unless this flag is set to true. If this thread becomes true at any stage (after a specific period in your case) return from thread A function.
Note: Killing or terminating a thread is not a good idea. It's always better to check some value and return from thread function in order to terminate it so that all resources are freed.

Somethings seem HARD to do, until we know how to do them.
Wink | ;-) _AnShUmAn_

GeneralRe: Kill a thread after a particular period of time. Pin
dolly24-Jun-08 20:34
dolly24-Jun-08 20:34 
GeneralRe: Kill a thread after a particular period of time. Pin
CPallini24-Jun-08 21:42
mveCPallini24-Jun-08 21:42 
QuestionRe: Kill a thread after a particular period of time. Pin
dolly24-Jun-08 22:26
dolly24-Jun-08 22:26 
AnswerRe: Kill a thread after a particular period of time. Pin
CPallini24-Jun-08 22:41
mveCPallini24-Jun-08 22:41 
GeneralRe: Kill a thread after a particular period of time. Pin
KASR124-Jun-08 23:00
KASR124-Jun-08 23:00 
QuestionRe: Kill a thread after a particular period of time. Pin
CPallini24-Jun-08 23:53
mveCPallini24-Jun-08 23:53 
AnswerRe: Kill a thread after a particular period of time. Pin
KASR124-Jun-08 23:59
KASR124-Jun-08 23:59 
GeneralRe: Kill a thread after a particular period of time. Pin
_AnsHUMAN_ 25-Jun-08 0:52
_AnsHUMAN_ 25-Jun-08 0:52 
GeneralRe: Kill a thread after a particular period of time. Pin
_AnsHUMAN_ 24-Jun-08 22:24
_AnsHUMAN_ 24-Jun-08 22:24 
GeneralRe: Kill a thread after a particular period of time. Pin
dolly24-Jun-08 23:30
dolly24-Jun-08 23:30 
GeneralRe: Kill a thread after a particular period of time. Pin
SandipG 25-Jun-08 0:15
SandipG 25-Jun-08 0:15 
GeneralRe: Kill a thread after a particular period of time. Pin
dolly25-Jun-08 1:13
dolly25-Jun-08 1:13 
GeneralRe: Kill a thread after a particular period of time. Pin
dolly25-Jun-08 18:34
dolly25-Jun-08 18:34 
QuestionRe: Kill a thread after a particular period of time. Pin
dolly25-Jun-08 18:34
dolly25-Jun-08 18:34 
GeneralRe: Kill a thread after a particular period of time. Pin
CPallini25-Jun-08 5:16
mveCPallini25-Jun-08 5:16 
GeneralRe: Kill a thread after a particular period of time. Pin
dolly25-Jun-08 17:47
dolly25-Jun-08 17:47 
QuestionCMFCPropertyGridProperty float inaccuracy problem [modified] Pin
followait24-Jun-08 19:15
followait24-Jun-08 19:15 

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.