Click here to Skip to main content
15,905,874 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: Suggestions on Using Grids? Pin
Tomasz Sowinski19-Mar-02 9:19
Tomasz Sowinski19-Mar-02 9:19 
AnswerRe: Suggestions on Using Grids? Pin
alex.barylski19-Mar-02 9:52
alex.barylski19-Mar-02 9:52 
GeneralRe: Suggestions on Using Grids? Pin
dazinith19-Mar-02 10:31
dazinith19-Mar-02 10:31 
QuestionDynamic array??? Possible??? Pin
19-Mar-02 8:25
suss19-Mar-02 8:25 
AnswerRe: Dynamic array??? Possible??? Pin
Paul M Watt19-Mar-02 8:42
mentorPaul M Watt19-Mar-02 8:42 
AnswerRe: Dynamic array??? Possible??? Pin
Tomasz Sowinski19-Mar-02 8:49
Tomasz Sowinski19-Mar-02 8:49 
AnswerRe: Dynamic array??? Possible??? Pin
Nemanja Trifunovic19-Mar-02 8:49
Nemanja Trifunovic19-Mar-02 8:49 
AnswerRe: Dynamic array??? Possible??? Pin
dazinith19-Mar-02 9:00
dazinith19-Mar-02 9:00 
im a newbie myself, but i have been using CStringArray, CObArray, and CUIntArray. These are build in classes for arrays of different types. They are cool because you can add and delete them without caring about what the size is. example:

// add stuff to it
CStringArray strArray;
CString strTemp("Hello");
strArray.Add(strTemp);
strTemp = "Second string";
strArray.Add(strTemp);

// get stuff from it
strTemp = strArray.GetAt(0);
strTemp += strArray.GetAt(1);

// delete an unwanted string
CString* pStr = strArray.GetAt(0);
delete pStr;
strArray.Remove(0);

keep in mind that these are arrays of pointers which point to strings, or objects, etc.


-dz
GeneralRe: Dynamic array??? Possible??? Pin
Christian Graus19-Mar-02 10:22
protectorChristian Graus19-Mar-02 10:22 
QuestionHow to create global variable? Pin
19-Mar-02 7:49
suss19-Mar-02 7:49 
AnswerRe: How to create global variable? Pin
Carlos Antollini19-Mar-02 7:51
Carlos Antollini19-Mar-02 7:51 
AnswerRe: How to create global variable? Pin
Paul M Watt19-Mar-02 8:07
mentorPaul M Watt19-Mar-02 8:07 
GeneralRe: How to create global variable? Pin
Tomasz Sowinski19-Mar-02 8:11
Tomasz Sowinski19-Mar-02 8:11 
GeneralRe: How to create global variable? Pin
Paul M Watt19-Mar-02 8:21
mentorPaul M Watt19-Mar-02 8:21 
GeneralRe: How to create global variable? Pin
Christian Graus19-Mar-02 10:24
protectorChristian Graus19-Mar-02 10:24 
GeneralRe: How to create global variable? Pin
Paul M Watt19-Mar-02 10:34
mentorPaul M Watt19-Mar-02 10:34 
GeneralRe: How to create global variable? Pin
Tomasz Sowinski19-Mar-02 10:43
Tomasz Sowinski19-Mar-02 10:43 
GeneralRe: How to create global variable? Pin
Christian Graus20-Mar-02 0:31
protectorChristian Graus20-Mar-02 0:31 
GeneralRe: How to create global variable? Pin
Bill Wilson19-Mar-02 14:03
Bill Wilson19-Mar-02 14:03 
GeneralRe: How to create global variable? Pin
Bill Wilson19-Mar-02 14:03
Bill Wilson19-Mar-02 14:03 
AnswerRe: How to create global variable? Pin
Tomasz Sowinski19-Mar-02 8:10
Tomasz Sowinski19-Mar-02 8:10 
GeneralSame caption problem as before, what am I doing wrong? (half reposted) Pin
generic_user_id19-Mar-02 7:48
generic_user_id19-Mar-02 7:48 
General_beginthreadex questions Pin
Le centriste19-Mar-02 7:39
Le centriste19-Mar-02 7:39 
GeneralRe: _beginthreadex questions Pin
Nemanja Trifunovic19-Mar-02 7:39
Nemanja Trifunovic19-Mar-02 7:39 
GeneralMore FlexGrid issues with .NET Pin
dazinith19-Mar-02 7:33
dazinith19-Mar-02 7:33 

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.