Click here to Skip to main content
16,010,114 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: PalBlt or FillRect.... - what is faster ? Pin
Tim Smith8-Mar-02 8:43
Tim Smith8-Mar-02 8:43 
GeneralToo few parameters. Expexted 1! Pin
isCode8-Mar-02 4:16
isCode8-Mar-02 4:16 
GeneralRe: Too few parameters. Expexted 1! Pin
8-Mar-02 4:23
suss8-Mar-02 4:23 
GeneralRe: Too few parameters. Expexted 1! Pin
isCode8-Mar-02 4:59
isCode8-Mar-02 4:59 
GeneralHibernation Notification Pin
Steve Thresher8-Mar-02 3:58
Steve Thresher8-Mar-02 3:58 
GeneralRe: Hibernation Notification Pin
Tomasz Sowinski8-Mar-02 4:04
Tomasz Sowinski8-Mar-02 4:04 
GeneralRe: Hibernation Notification Pin
Steve Thresher8-Mar-02 6:23
Steve Thresher8-Mar-02 6:23 
Generaldeque of structures Pin
Merle Pittman8-Mar-02 3:53
Merle Pittman8-Mar-02 3:53 
I am writing a class to display a grid in a view. This is not a database grid, but a grid that graphically illutrates which elements of a 35 element laser beam have been triggered over time.

So the width of the grid is 35 elements wide (constant) but the height is variable over time. I need to store the data to represent the state of each block within the grid (triggered = display grid element in blue OR not triggered = display grid element in gray for instance).

My plan is to store the the 35 element grid row in a:
vector<bool> Grid_Row; //(triggered=true, not triggered=false)

since the size is predetermined, and store the collection of vectors in a deque:
deque < vector<bool> > Grid_Deque; // collection of grid rows

This works fine as it stands, but now I have to attach a time indicator to each row. My first plan was to convert the deque of vectors to a deque of structs (which would contain the vector and a timing variable:
struct GridRow
{
UINT time;
vector <bool> gridRow;
};
GridRow gr;

deque < gr > Grid_Deque;


Unfortunately this is not working to well.

Can someone help with this. Maybe tell me how to get this working(if it is possible) or maybe suggest a better solution.

Thanks
-Merle
GeneralRe: deque of structures Pin
Joaquín M López Muñoz8-Mar-02 3:58
Joaquín M López Muñoz8-Mar-02 3:58 
GeneralRe: deque of structures Pin
Tomasz Sowinski8-Mar-02 3:58
Tomasz Sowinski8-Mar-02 3:58 
GeneralRe: deque of structures Pin
Merle Pittman8-Mar-02 4:02
Merle Pittman8-Mar-02 4:02 
GeneralRe: deque of structures Pin
Tomasz Sowinski8-Mar-02 5:03
Tomasz Sowinski8-Mar-02 5:03 
GeneralRe: deque of structures Pin
8-Mar-02 17:38
suss8-Mar-02 17:38 
QuestionHow do I get multi-node select in a Tree Control? Pin
david ewan8-Mar-02 3:33
david ewan8-Mar-02 3:33 
AnswerRe: How do I get multi-node select in a Tree Control? Pin
Tomasz Sowinski8-Mar-02 3:43
Tomasz Sowinski8-Mar-02 3:43 
GeneralDialog Boxes Pin
Mark Ryall8-Mar-02 2:26
Mark Ryall8-Mar-02 2:26 
GeneralRe: Dialog Boxes Pin
Tomasz Sowinski8-Mar-02 2:31
Tomasz Sowinski8-Mar-02 2:31 
GeneralRe: Dialog Boxes Pin
Joaquín M López Muñoz8-Mar-02 2:38
Joaquín M López Muñoz8-Mar-02 2:38 
GeneralRe: Dialog Boxes Pin
Carlos Antollini8-Mar-02 2:50
Carlos Antollini8-Mar-02 2:50 
GeneralRe: Dialog Boxes Pin
Mark Ryall8-Mar-02 3:02
Mark Ryall8-Mar-02 3:02 
GeneralRe: Dialog Boxes Pin
Carlos Antollini8-Mar-02 3:04
Carlos Antollini8-Mar-02 3:04 
GeneralRe: Dialog Boxes Pin
Jon Newman8-Mar-02 7:27
Jon Newman8-Mar-02 7:27 
GeneralRe: Dialog Boxes Pin
Jonathan Craig8-Mar-02 4:53
Jonathan Craig8-Mar-02 4:53 
GeneralRe: Dialog Boxes Pin
Ravi Bhavnani8-Mar-02 6:41
professionalRavi Bhavnani8-Mar-02 6: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.