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

C / C++ / MFC

 
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 
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 
Firstly thanks a lot for your reply. I finally reached the timeline, did exactly what you mentioned like killing old timer and starting a new one based upon different conditions so the timer keep on changing the interval. Now the requirement got changed so that i need to continue using the old timer to do task A and invoking the second timer (which needs to be updated say every few minutes) but the first timer is getting invoded every 20 seconds and its independent upon the 2nd timer.
So i was wondering like if when the first timer got fired and invoke the OnTimer(), can i create a new timer(timerB) in the OnTimer() event, kill new timerB and reset new timerB all through the OnTimer() Event. It look like a mess right now since after every few seconds the OnTimer() is getting fired & most of the application logic is written itself in OnTimer Event but the same things i need to invoke/update using 2nd timer which has a big time interval. So what you suggest in this case? like do i need to create Ontimer2()Events for the 2nd timer.
Second solution is the ideal one in my particular case but i've few design constraints that prohibit me to create new threads.
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 
GeneralRe: making a unsigned char array gives a buffer overrun error Pin
Albert Holguin7-Nov-11 7:23
professionalAlbert Holguin7-Nov-11 7:23 
GeneralRe: making a unsigned char array gives a buffer overrun error Pin
Erudite_Eric7-Nov-11 7:41
Erudite_Eric7-Nov-11 7:41 

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.