Click here to Skip to main content
15,891,777 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
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 
AnswerRe: how to use setTimer with variable time intervals Pin
Chuck O'Toole18-Nov-11 12:02
Chuck O'Toole18-Nov-11 12:02 
There is no such thing as "Ontime2()" in the framework, there is only "OnTimer(UINT_PTR nIDEvent)".

Nothing prevents you from having two separate timer IDs
C#
m_TimerID1 = SetTimer(1, TimerValue1, NULL);
m_TimerID2 = SetTimer(2, TimerValue2, NULL);

They will both go through the same "OnTimer()" function, you will be passed the event id so you can test which one went off and act appropriately.

There are probably other ways of handling this kind of situation, including having a "lowest common denominator" interval and managing your own countdown for event A or event B. As long as it doesn't get any crazier, two timers should work out ok.
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 
GeneralRe: making a unsigned char array gives a buffer overrun error Pin
Albert Holguin7-Nov-11 7:45
professionalAlbert Holguin7-Nov-11 7:45 

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.