Click here to Skip to main content
15,902,873 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Help! Pin
Dave Bryant7-Aug-03 17:43
Dave Bryant7-Aug-03 17:43 
GeneralRe: Help! Pin
DaveE9th7-Aug-03 19:35
DaveE9th7-Aug-03 19:35 
QuestionHow can I create a window? Pin
ribbs7-Aug-03 15:23
ribbs7-Aug-03 15:23 
GeneralScrolling a tree view Pin
Marissa1827-Aug-03 14:26
Marissa1827-Aug-03 14:26 
GeneralRe: Scrolling a tree view Pin
Maximilien7-Aug-03 14:54
Maximilien7-Aug-03 14:54 
Questionhow to access Doc class from a dialog memeber function Pin
mr20037-Aug-03 14:24
mr20037-Aug-03 14:24 
AnswerRe: how to access Doc class from a dialog memeber function Pin
Navin7-Aug-03 15:51
Navin7-Aug-03 15:51 
GeneralA List in memory... Pin
Kuniva7-Aug-03 12:36
Kuniva7-Aug-03 12:36 
I'm working on a project and i need some sort of list object in memory, it just has to exist in memory, i'm not talking about a gui list or anything. The list should be able to hold anything i want... like.. every entry should have its own unique ID (an integer value), a name (a string value) and possibly others. But each new entry will have the same types of values as the others, if u know what i mean. Then i should be able to add entries and remove them quite easily by calling a function on it or something sort of like this:

list.AddEntry(<unique id>,<name>, etc...);
list.RemoveEntry(<unique id>);

I hope u know what i mean. Now my question is, how is this commonly done? Do people build their own structure or something? and write all the add and remove code themselves? Or is there maybe an existing object i can use (and i'm not talking MFC, just basic c++ with stdlib etc.). I've seen someone use a vector or something before but i'm not sure what thats about, and they used a strange way to declare the variable like..

int<vector> bla;

or something like that..can't quite remember.

But anyways i'm just looking for the right way to do it Smile | :)

Thank you.

Kuniva
--------------------------------------------

GeneralRe: A List in memory... Pin
John M. Drescher7-Aug-03 13:01
John M. Drescher7-Aug-03 13:01 
GeneralRe: A List in memory... Pin
Kuniva8-Aug-03 1:00
Kuniva8-Aug-03 1:00 
GeneralRe: A List in memory... Pin
John M. Drescher8-Aug-03 13:10
John M. Drescher8-Aug-03 13:10 
Questionhow can I access variable in View class from my dialog member function? Pin
mr20037-Aug-03 12:23
mr20037-Aug-03 12:23 
AnswerRe: how can I access variable in View class from my dialog member function? Pin
John M. Drescher7-Aug-03 12:33
John M. Drescher7-Aug-03 12:33 
GeneralRe: how can I access variable in View class from my dialog member function? Pin
mr20037-Aug-03 13:28
mr20037-Aug-03 13:28 
GeneralRe: how can I access variable in View class from my dialog member function? Pin
John M. Drescher7-Aug-03 13:31
John M. Drescher7-Aug-03 13:31 
GeneralRe: how can I access variable in View class from my dialog member function? Pin
mr20037-Aug-03 13:48
mr20037-Aug-03 13:48 
GeneralRe: how can I access variable in View class from my dialog member function? Pin
Maximilien7-Aug-03 14:23
Maximilien7-Aug-03 14:23 
GeneralRe: how can I access variable in View class from my dialog member function? Pin
John M. Drescher7-Aug-03 15:41
John M. Drescher7-Aug-03 15:41 
AnswerRe: how can I access variable in View class from my dialog member function? Pin
PremL8-Aug-03 5:31
PremL8-Aug-03 5:31 
Generalrand ( ) Pin
DaveE9th7-Aug-03 12:08
DaveE9th7-Aug-03 12:08 
GeneralRe: rand ( ) Pin
Bob Stanneveld7-Aug-03 12:19
Bob Stanneveld7-Aug-03 12:19 
GeneralRe: rand ( ) Pin
DaveE9th7-Aug-03 13:13
DaveE9th7-Aug-03 13:13 
GeneralRe: rand ( ) Pin
John M. Drescher7-Aug-03 13:26
John M. Drescher7-Aug-03 13:26 
GeneralRe: rand ( ) Pin
Bob Stanneveld7-Aug-03 21:41
Bob Stanneveld7-Aug-03 21:41 
GeneralRe: rand ( ) Pin
Joe Woodbury7-Aug-03 12:23
professionalJoe Woodbury7-Aug-03 12:23 

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.