Click here to Skip to main content
15,910,234 members
Home / Discussions / ATL / WTL / STL
   

ATL / WTL / STL

 
GeneralRe: STL vs. MFC Pin
lpvoid7-Jan-03 5:48
lpvoid7-Jan-03 5:48 
GeneralRe: STL vs. MFC Pin
valikac7-Jan-03 9:02
valikac7-Jan-03 9:02 
GeneralRe: STL vs. MFC Pin
User 98858-Jan-03 10:06
User 98858-Jan-03 10:06 
GeneralRe: STL vs. MFC Pin
User 98859-Jan-03 2:36
User 98859-Jan-03 2:36 
GeneralRe: STL vs. MFC Pin
Tim Smith9-Jan-03 4:04
Tim Smith9-Jan-03 4:04 
GeneralRe: STL vs. MFC Pin
User 98859-Jan-03 5:12
User 98859-Jan-03 5:12 
GeneralRe: STL vs. MFC Pin
Tim Smith9-Jan-03 15:08
Tim Smith9-Jan-03 15:08 
GeneralRe: STL vs. MFC Pin
lpvoid10-Jan-03 13:45
lpvoid10-Jan-03 13:45 
OK guys, how about this:

CArray<int, int> IntArray; //make the array
IntArray.SetSize(0, 1000); //set the size to zero and the growby to 1000
int size = IntArray.GetSize(); //get the initial size
int upper_bound = IntArray.GetUpperBound(); //get the last element in the array
int random_limit = rand(); //create some random loop limit
for(int i = 0; i < random_limit; i++) //loop
IntArray.Add(rand()); //add random numbers to the array
size = IntArray.GetSize(); //check the size
upper_bound = IntArray.GetUpperBound(); //check where the last element is

The only thing that really bothers me is that you really can't tell if the 1000 elements have been allocated as SetAt() and ElementAt() ASSERT after m_nSize (returned by GetSize()).

Thanks,
John

GeneralRe: STL vs. MFC Pin
lpvoid10-Jan-03 16:48
lpvoid10-Jan-03 16:48 
GeneralHelp with ATL 7.0 Pin
Binky6-Jan-03 8:12
Binky6-Jan-03 8:12 
Generalmap of _variant_t Pin
[James Pullicino]5-Jan-03 21:57
[James Pullicino]5-Jan-03 21:57 
GeneralRe: map of _variant_t Pin
Michael Dunn5-Jan-03 22:14
sitebuilderMichael Dunn5-Jan-03 22:14 
GeneralRe: map of _variant_t Pin
[James Pullicino]5-Jan-03 22:20
[James Pullicino]5-Jan-03 22:20 
GeneralRe: map of _variant_t Pin
Jörgen Sigvardsson17-Jan-03 12:26
Jörgen Sigvardsson17-Jan-03 12:26 
GeneralProblem with WTL Pin
Ph@ntom5-Jan-03 18:43
Ph@ntom5-Jan-03 18:43 
GeneralRe: Problem with WTL Pin
Michael Dunn5-Jan-03 20:40
sitebuilderMichael Dunn5-Jan-03 20:40 
GeneralRe: Problem with WTL Pin
User 98858-Jan-03 10:14
User 98858-Jan-03 10:14 
GeneralWTL: a newbie question Pin
Shah Shehpori5-Jan-03 18:41
sussShah Shehpori5-Jan-03 18:41 
GeneralRe: WTL: a newbie question Pin
Jörgen Sigvardsson17-Jan-03 12:29
Jörgen Sigvardsson17-Jan-03 12:29 
GeneralCRegKey QueryStringValue Pin
rbeckett5-Jan-03 17:01
rbeckett5-Jan-03 17:01 
GeneralRe: CRegKey QueryStringValue Pin
Michael Dunn5-Jan-03 17:24
sitebuilderMichael Dunn5-Jan-03 17:24 
GeneralGreat! Works Perfectly! Pin
rbeckett5-Jan-03 17:41
rbeckett5-Jan-03 17:41 
QuestionHow do I create Different view derived class ? Pin
Jose Cruz3-Jan-03 6:45
Jose Cruz3-Jan-03 6:45 
GeneralRegarding memory Pin
suresh_sathya1-Jan-03 20:14
suresh_sathya1-Jan-03 20:14 
GeneralRe: Regarding memory Pin
AlexO2-Jan-03 3:10
AlexO2-Jan-03 3:10 

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.