Click here to Skip to main content
15,921,577 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: What is LPCTSTR? & how to convert 2 a char? Pin
David Crow21-Jun-05 7:11
David Crow21-Jun-05 7:11 
AnswerRe: What is LPCTSTR? & how to convert 2 a char? Pin
TheGreatAndPowerfulOz21-Jun-05 7:18
TheGreatAndPowerfulOz21-Jun-05 7:18 
AnswerRe: What is LPCTSTR? & how to convert 2 a char? Pin
John R. Shaw21-Jun-05 8:23
John R. Shaw21-Jun-05 8:23 
QuestionHOW TO: Timer / tic function in C woes Pin
kevingpo21-Jun-05 6:18
kevingpo21-Jun-05 6:18 
AnswerRe: HOW TO: Timer / tic function in C woes Pin
BlackDice21-Jun-05 6:20
BlackDice21-Jun-05 6:20 
GeneralRe: HOW TO: Timer / tic function in C woes Pin
kevingpo21-Jun-05 7:58
kevingpo21-Jun-05 7:58 
GeneralRe: HOW TO: Timer / tic function in C woes Pin
BlackDice21-Jun-05 8:10
BlackDice21-Jun-05 8:10 
GeneralRe: HOW TO: Timer / tic function in C woes Pin
Blake Miller21-Jun-05 9:14
Blake Miller21-Jun-05 9:14 
Or the secondary thread can call WaitForSingleObject with a timeout.
That way, it is easy to get the thread to STOP if you set an event, or else it will exipre over the itme interval and return WAIT_TIMEOUT. This prevents the need to KILL the thread to get it to stop before the timeout period has elapsed. If you want the thread to respond to messages, then use the MsgWaitForMultipleObjects. Having the thread Sleep() just makes other parts of the application unresponsive and is poor design, such as in system shutdown Mad | :mad:

The timing will not be terribly precise, but if you can tolerate +-1 second or less, you are probably fine.
GeneralWIndows Controls Pin
Ross White21-Jun-05 5:15
Ross White21-Jun-05 5:15 
GeneralRe: WIndows Controls Pin
Blake Miller21-Jun-05 5:43
Blake Miller21-Jun-05 5:43 
GeneralRe: WIndows Controls Pin
James Brown21-Jun-05 7:30
James Brown21-Jun-05 7:30 
GeneralRe: WIndows Controls Pin
Andy Moore21-Jun-05 7:35
Andy Moore21-Jun-05 7:35 
GeneralRe: WIndows Controls Pin
Ross White21-Jun-05 8:08
Ross White21-Jun-05 8:08 
Generaldynamic check box creation Pin
softtec21-Jun-05 4:33
softtec21-Jun-05 4:33 
GeneralRe: dynamic check box creation Pin
Blake Miller21-Jun-05 6:05
Blake Miller21-Jun-05 6:05 
GeneralUltimate Grid 6.1 (tab font) Pin
smbelow21-Jun-05 4:32
smbelow21-Jun-05 4:32 
GeneralRe: Ultimate Grid 6.1 (tab font) Pin
lynchspawn21-Jun-05 4:41
lynchspawn21-Jun-05 4:41 
GeneralDLL question ( clueless ) Pin
Maximilien21-Jun-05 4:05
Maximilien21-Jun-05 4:05 
GeneralRe: DLL question ( clueless ) Pin
LCI21-Jun-05 4:15
LCI21-Jun-05 4:15 
GeneralRe: DLL question ( clueless ) Pin
Tom Archer21-Jun-05 4:15
Tom Archer21-Jun-05 4:15 
GeneralRe: DLL question ( clueless ) Pin
Antony M Kancidrowski21-Jun-05 4:24
Antony M Kancidrowski21-Jun-05 4:24 
GeneralRe: DLL question ( clueless ) probably self-answered Pin
Maximilien21-Jun-05 4:30
Maximilien21-Jun-05 4:30 
GeneralRe: DLL question ( clueless ) probably self-answered Pin
Antony M Kancidrowski21-Jun-05 4:44
Antony M Kancidrowski21-Jun-05 4:44 
QuestionSDI w/ splitter - SetActiveView()??? Pin
lynchspawn21-Jun-05 4:04
lynchspawn21-Jun-05 4:04 
GeneralReading a node value from XML file Pin
LCI21-Jun-05 3:40
LCI21-Jun-05 3: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.