Using TCVectorImp and TCVectorIteratorImp

This is a discussion on Using TCVectorImp and TCVectorIteratorImp within the C++ Programming forums, part of the General Programming Boards category; I'm loading a text file using fstream. I do not want to use an array to hold the data so ...

Question
Now I need to use the iterator it to iterate through the vector Buffer. How do I go about doing this? Also does not matter if each string is diff size because that is handled by the string class, not the Vector class. The Vector class just holds string objects.
I've tried some implementations and got them to compile, but did not do what I want it to.

Purpose
This function is responding to a WM_PAINT message for my window - it iterates through the current vector and writes the line of text (line by line) to the Client DC.

Benefits
This is much faster in loading and iteration than using a plain old char array.

Correct class used?
Should I use a vector for this or a list?

Vector in memory
Now is the time for all (first vector string)
good men to come to (second vector string)
the aid of their country. (third vector string)

File on disk
Now is the time for all <cr> good men to come to <cr>
the aid of their country. <cr>

For some reason this code does not add TString objects to the Vector of TString objects. If I retrieve the count, it is always 0. I've typedef'ed TCVectorImp and TCVectorIteratorImp to TStringContainer and TStringIterator respectively.

Please ignore all of the Windows relevant code (and 3rd party library code which encapsulates Windows API) and just help me with the STL classes.

hmm i like personally to use sizeof,
and embed structs to do the container...

you dont have to use arrays, you can have a struct with a set of strings, and then do a size of the struct that u used and it will distrobute the right data into each array in one line...
only in BINARY MODE.. TEXT mode is not full proof