Click here to Skip to main content
15,913,264 members
Home / Discussions / ATL / WTL / STL
   

ATL / WTL / STL

 
GeneralRe: STL Fix Pin
John M. Drescher4-Apr-03 4:19
John M. Drescher4-Apr-03 4:19 
General2 Tbbuttons Pin
DuFF30-Mar-03 16:22
DuFF30-Mar-03 16:22 
GeneralAssignment operator with ofstream Pin
Anonymous28-Mar-03 5:26
Anonymous28-Mar-03 5:26 
GeneralRe: Assignment operator with ofstream Pin
Ralph Wetzel28-Mar-03 5:54
Ralph Wetzel28-Mar-03 5:54 
GeneralRe: Assignment operator with ofstream Pin
Joaquín M López Muñoz28-Mar-03 5:54
Joaquín M López Muñoz28-Mar-03 5:54 
GeneralATL events in a container Pin
Shah Shehpori28-Mar-03 4:56
sussShah Shehpori28-Mar-03 4:56 
Generalvector reallocation giving problem (repost) Pin
Anonymous27-Mar-03 13:01
Anonymous27-Mar-03 13:01 
GeneralRe: vector reallocation giving problem (repost) Pin
Taka Muraoka27-Mar-03 13:23
Taka Muraoka27-Mar-03 13:23 
this is probably ok. your understanding is incorrect - you will end up with two vectors containing the list of pointers. the only thing you need to be careful of is who does the clean up i.e. make sure the pointed-to objects don't get destroyed twice.

your resizing test is wrong though. capacity() returns the amount of space *allocated*, not necessarily *used*. you can just do:

<br />
Persons.resize( m_Persons.size() ) ;<br />


your misunderstanding is probably this: if you resize a vector, the memory used to store that vector's elements may be moved i.e. the memory used to store your pointers may change but not the pointers themselves.




Software is everything. It also sucks. Charles Fishman [^]

Awasu 1.0.2 (beta)[^]: A free RSS reader with support for Code Project.

GeneralRe: vector reallocation giving problem (repost) Pin
jhwurmbach30-Mar-03 22:34
jhwurmbach30-Mar-03 22:34 
Questionvector rellocation giving problem? Pin
Anonymous27-Mar-03 11:54
Anonymous27-Mar-03 11:54 
AnswerRe: vector rellocation giving problem? Pin
Anonymous27-Mar-03 11:59
Anonymous27-Mar-03 11:59 
GeneralUisng ATL7 CMimeMessage classes Pin
Amit Dey26-Mar-03 22:32
Amit Dey26-Mar-03 22:32 
GeneralRe: Uisng ATL7 CMimeMessage classes Pin
geo_m26-Mar-03 23:56
geo_m26-Mar-03 23:56 
GeneralRe: Uisng ATL7 CMimeMessage classes Pin
Amit Dey28-Mar-03 18:53
Amit Dey28-Mar-03 18:53 
GeneralRe: Uisng ATL7 CMimeMessage classes Pin
geo_m28-Mar-03 22:04
geo_m28-Mar-03 22:04 
GeneralRe: Using ATL7 CMimeMessage classes Pin
Amit Dey29-Mar-03 21:37
Amit Dey29-Mar-03 21:37 
GeneralRe: Using ATL7 CMimeMessage classes Pin
Amit Dey29-Mar-03 21:39
Amit Dey29-Mar-03 21:39 
GeneralRe: Using ATL7 CMimeMessage classes Pin
geo_m29-Mar-03 22:49
geo_m29-Mar-03 22:49 
GeneralRe: Using ATL7 CMimeMessage classes Pin
Amit Dey30-Mar-03 8:47
Amit Dey30-Mar-03 8:47 
Generalcopy multimap to vector Pin
Anonymous26-Mar-03 9:07
Anonymous26-Mar-03 9:07 
GeneralRe: copy multimap to vector Pin
jbarton26-Mar-03 9:48
jbarton26-Mar-03 9:48 
GeneralRe: copy multimap to vector Pin
Tim Smith26-Mar-03 10:00
Tim Smith26-Mar-03 10:00 
GeneralRe: copy multimap to vector Pin
jbarton26-Mar-03 10:04
jbarton26-Mar-03 10:04 
GeneralHosting a modeless dialog as a control (WTL) Pin
yarp26-Mar-03 4:26
yarp26-Mar-03 4:26 
GeneralRe: Hosting a modeless dialog as a control (WTL) Pin
yarp26-Mar-03 4:29
yarp26-Mar-03 4:29 

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.