Click here to Skip to main content
15,911,306 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Read stream of bytes in a buffer as a String Pin
David Crow12-Oct-07 3:24
David Crow12-Oct-07 3:24 
QuestionHow to create "unistall" in setup project using VC++2003 Pin
TooShy2Talk9-Oct-07 17:15
TooShy2Talk9-Oct-07 17:15 
QuestionWhy my colcontaing method of datagrid doesn't work well? Pin
shakaqrj9-Oct-07 17:06
shakaqrj9-Oct-07 17:06 
AnswerRe: Why my colcontaing method of datagrid doesn't work well? Pin
chandu0049-Oct-07 18:51
chandu0049-Oct-07 18:51 
GeneralRe: Why my colcontaing method of datagrid doesn't work well? Pin
shakaqrj9-Oct-07 20:24
shakaqrj9-Oct-07 20:24 
GeneralRe: Why my colcontaing method of datagrid doesn't work well? Pin
shakaqrj10-Oct-07 20:59
shakaqrj10-Oct-07 20:59 
QuestionCapture video, using IEEE1394 Pin
dum9-Oct-07 16:49
dum9-Oct-07 16:49 
QuestionArray Lengths? Pin
Michael1019-Oct-07 16:20
Michael1019-Oct-07 16:20 
AnswerRe: Array Lengths? Pin
Naveen9-Oct-07 16:34
Naveen9-Oct-07 16:34 
GeneralRe: Array Lengths? Pin
Michael1019-Oct-07 16:38
Michael1019-Oct-07 16:38 
GeneralRe: Array Lengths? Pin
Naveen9-Oct-07 16:47
Naveen9-Oct-07 16:47 
GeneralRe: Array Lengths? Pin
Michael1019-Oct-07 16:49
Michael1019-Oct-07 16:49 
GeneralRe: Array Lengths? Pin
Naveen9-Oct-07 16:54
Naveen9-Oct-07 16:54 
AnswerRe: Array Lengths? Pin
David Crow9-Oct-07 16:43
David Crow9-Oct-07 16:43 
GeneralRe: Array Lengths? Pin
Michael1019-Oct-07 16:55
Michael1019-Oct-07 16:55 
AnswerRe: Array Lengths? Pin
jhwurmbach9-Oct-07 23:02
jhwurmbach9-Oct-07 23:02 
QuestionListView, tile mode & multiple lines - how??? Pin
Vlasta_9-Oct-07 12:25
Vlasta_9-Oct-07 12:25 
AnswerRe: ListView, tile mode & multiple lines - how??? Pin
Roger Broomfield9-Oct-07 20:13
Roger Broomfield9-Oct-07 20:13 
GeneralRe: ListView, tile mode & multiple lines - how??? Pin
Vlasta_9-Oct-07 22:45
Vlasta_9-Oct-07 22:45 
QuestionOverlapping queuing times - best method? Pin
Iain Clarke, Warrior Programmer9-Oct-07 10:02
Iain Clarke, Warrior Programmer9-Oct-07 10:02 
I have a problem I need to solve - preferably elegantly!

I have a series of inputs to my software.

Imagine... If Input A - turn an output on in 5 seconds for 2 second.
If Input B, turn an output on in 3 seconds for 2.5 seconds.

I was thinking of a queue of "on" times, and checkinh if the output should on every (eg 0.1s).

but imagine InputA came on briefly, then 1 second later InputB came on as well. You would have overlapping ON times.

I know I can do this with brute force, have a list of on-off structs, (probably using CPoint), and check every one of them each 0.1s - and get rid of the "expired" ones.

But I'm sure there must be a more elegant solution, probably using STL. It's possible there could be a *lot* of these queued events, so some some of merging of events would be helpful.

Any ideas welcome!

Iain.
AnswerRe: Overlapping queuing times - best method? Pin
Leslie Sanford9-Oct-07 14:39
Leslie Sanford9-Oct-07 14:39 
GeneralRe: Overlapping queuing times - best method? Pin
Iain Clarke, Warrior Programmer11-Oct-07 6:05
Iain Clarke, Warrior Programmer11-Oct-07 6:05 
GeneralRe: Overlapping queuing times - best method? Pin
El Corazon11-Oct-07 6:35
El Corazon11-Oct-07 6:35 
AnswerRe: Overlapping queuing times - best method? Pin
El Corazon9-Oct-07 15:04
El Corazon9-Oct-07 15:04 
GeneralRe: Overlapping queuing times - best method? Pin
Iain Clarke, Warrior Programmer11-Oct-07 6:06
Iain Clarke, Warrior Programmer11-Oct-07 6:06 

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.