Click here to Skip to main content
15,908,775 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: if(NULL == MyPointer) Pin
Stefan_Lang10-Nov-11 3:25
Stefan_Lang10-Nov-11 3:25 
Questionsetup with active x Pin
antonio3437-Nov-11 13:52
antonio3437-Nov-11 13:52 
AnswerRe: setup with active x Pin
Chandrasekharan P7-Nov-11 19:15
Chandrasekharan P7-Nov-11 19:15 
GeneralRe: setup with active x Pin
antonio3437-Nov-11 21:41
antonio3437-Nov-11 21:41 
AnswerRe: setup with active x Pin
Malli_S8-Nov-11 1:17
Malli_S8-Nov-11 1:17 
AnswerRe: setup with active x Pin
Eytukan8-Nov-11 7:53
Eytukan8-Nov-11 7:53 
Questionhow to use setTimer with variable time intervals Pin
mani09097-Nov-11 13:22
mani09097-Nov-11 13:22 
AnswerRe: how to use setTimer with variable time intervals Pin
Chuck O'Toole7-Nov-11 13:35
Chuck O'Toole7-Nov-11 13:35 
Why not simply kill the old timer and start a new one when you want to change the interval? It seems to me that you are making the determination of the new interval during processing of the old timer going off so it's easy to reset the time to the next timer event.

Now personally, I wouldn't do it this way, especially if the application is already threaded. I use a thread with a sleep interval that takes me to the next event. In fact, I use a "WaitForSingleObject()" on an event flag with the timer interval as the timeout. This allows for another thread to "wake" the timer thread when some extraordinary event takes place, one that could possible affect when the next interval is supposed to fire.
GeneralRe: how to use setTimer with variable time intervals Pin
Albert Holguin7-Nov-11 13:47
professionalAlbert Holguin7-Nov-11 13:47 
GeneralRe: how to use setTimer with variable time intervals Pin
mani090918-Nov-11 11:34
mani090918-Nov-11 11:34 
AnswerRe: how to use setTimer with variable time intervals Pin
Chuck O'Toole18-Nov-11 12:02
Chuck O'Toole18-Nov-11 12:02 
Question[OOP c++] practical use cases of cross casting Pin
elgaabeb7-Nov-11 6:19
elgaabeb7-Nov-11 6:19 
AnswerRe: [OOP c++] practical use cases of cross casting REPOST Pin
Richard MacCutchan7-Nov-11 7:43
mveRichard MacCutchan7-Nov-11 7:43 
GeneralRe: [OOP c++] practical use cases of cross casting REPOST Pin
Albert Holguin7-Nov-11 8:01
professionalAlbert Holguin7-Nov-11 8:01 
GeneralRe: [OOP c++] practical use cases of cross casting REPOST Pin
elgaabeb7-Nov-11 22:33
elgaabeb7-Nov-11 22:33 
GeneralRe: [OOP c++] practical use cases of cross casting REPOST Pin
Richard MacCutchan7-Nov-11 23:27
mveRichard MacCutchan7-Nov-11 23:27 
GeneralRe: [OOP c++] practical use cases of cross casting REPOST Pin
elgaabeb7-Nov-11 23:35
elgaabeb7-Nov-11 23:35 
Questionmaking a unsigned char array gives a buffer overrun error Pin
VCProgrammer6-Nov-11 17:45
VCProgrammer6-Nov-11 17:45 
AnswerRe: making a unsigned char array gives a buffer overrun error Pin
Chuck O'Toole6-Nov-11 18:13
Chuck O'Toole6-Nov-11 18:13 
GeneralRe: making a unsigned char array gives a buffer overrun error Pin
Luc Pattyn6-Nov-11 23:04
sitebuilderLuc Pattyn6-Nov-11 23:04 
GeneralRe: making a unsigned char array gives a buffer overrun error Pin
Erudite_Eric7-Nov-11 6:57
Erudite_Eric7-Nov-11 6:57 
GeneralRe: making a unsigned char array gives a buffer overrun error Pin
Albert Holguin7-Nov-11 7:18
professionalAlbert Holguin7-Nov-11 7:18 
AnswerRe: making a unsigned char array gives a buffer overrun error Pin
Erudite_Eric7-Nov-11 6:56
Erudite_Eric7-Nov-11 6:56 
GeneralRe: making a unsigned char array gives a buffer overrun error Pin
Albert Holguin7-Nov-11 7:17
professionalAlbert Holguin7-Nov-11 7:17 
GeneralRe: making a unsigned char array gives a buffer overrun error Pin
Chuck O'Toole7-Nov-11 7:22
Chuck O'Toole7-Nov-11 7:22 

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.