Click here to Skip to main content
15,919,028 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: How to Copy one vector onto the END of another vector Pin
toxcct22-Nov-07 7:28
toxcct22-Nov-07 7:28 
AnswerRe: How to Copy one vector onto the END of another vector Pin
toxcct22-Nov-07 6:57
toxcct22-Nov-07 6:57 
GeneralRe: How to Copy one vector onto the END of another vector [modified] Pin
Larry Mills Sr22-Nov-07 8:01
Larry Mills Sr22-Nov-07 8:01 
GeneralRe: How to Copy one vector onto the END of another vector Pin
toxcct22-Nov-07 8:08
toxcct22-Nov-07 8:08 
GeneralRe: How to Copy one vector onto the END of another vector Pin
Larry Mills Sr22-Nov-07 8:31
Larry Mills Sr22-Nov-07 8:31 
GeneralRe: How to Copy one vector onto the END of another vector Pin
toxcct22-Nov-07 8:35
toxcct22-Nov-07 8:35 
GeneralRe: How to Copy one vector onto the END of another vector Pin
Larry Mills Sr22-Nov-07 15:05
Larry Mills Sr22-Nov-07 15:05 
GeneralRe: How to Copy one vector onto the END of another vector [modified] Pin
toxcct22-Nov-07 21:07
toxcct22-Nov-07 21:07 
I don't know what is m_csData, but it's a member of your class CMyTrailer, which class has several instances into the vector. you agree with that ?

i'm not sure to understand exactly why you're trying to access m_csData; not in the copy achievement, right ?

anyway, let's say you have an iterator on the vector :
ITEM::iterator it = vec.begin();

like i declared it, and initialized it, it is now an iterator which can go thru ITEM's elements, and is told to be placed on the first element of the vector.
basically, you can see an iterator as an "involved" pointer. just remember that, like pointers, you access the element pointed to by "dereferencing" it : *it
so, *it now returns the CMyTrailer element pointed to by it.
as m_csData is public, you can just access it like that :
(*it).m_csData;
 
or even better
 
it->m_csData;


for your learning, here is THE web site reference for STL : http://www.sgi.com/tech/stl/[^]
also, you can find at codeproject some good articles, like This One[^].

but feel free to continue asking me if you need Wink | ;)


GeneralRe: How to Copy one vector onto the END of another vector Pin
Larry Mills Sr23-Nov-07 8:31
Larry Mills Sr23-Nov-07 8:31 
GeneralRe: How to Copy one vector onto the END of another vector Pin
super_ttd23-Nov-07 23:17
super_ttd23-Nov-07 23:17 
GeneralRe: How to Copy one vector onto the END of another vector Pin
Larry Mills Sr24-Nov-07 6:41
Larry Mills Sr24-Nov-07 6:41 
GeneralRe: How to Copy one vector onto the END of another vector Pin
toxcct25-Nov-07 21:14
toxcct25-Nov-07 21:14 
QuestionVersioning a Win32 DLL Pin
Rajesh_Parameswaran22-Nov-07 4:58
Rajesh_Parameswaran22-Nov-07 4:58 
AnswerRe: Versioning a Win32 DLL Pin
Mark Salsbery22-Nov-07 6:59
Mark Salsbery22-Nov-07 6:59 
QuestionAdding a Toolbar window into a MDI frame window Pin
Tien-Thong22-Nov-07 4:55
Tien-Thong22-Nov-07 4:55 
AnswerRe: Adding a Toolbar window into a MDI frame window Pin
Prasann Mayekar23-Nov-07 18:26
Prasann Mayekar23-Nov-07 18:26 
QuestionAddPrinter() fails with Error Code 126 Pin
dubbele onzin22-Nov-07 2:32
dubbele onzin22-Nov-07 2:32 
GeneralRe: AddPrinter() fails with Error Code 126 Pin
Nelek5-Dec-07 4:02
protectorNelek5-Dec-07 4:02 
QuestionIs that possible to run an EXE file that is placed inside a data file ? Pin
sdancer7522-Nov-07 2:12
sdancer7522-Nov-07 2:12 
AnswerRe: Is that possible to run an EXE file that is placed inside a data file ? Pin
Iain Clarke, Warrior Programmer22-Nov-07 3:44
Iain Clarke, Warrior Programmer22-Nov-07 3:44 
GeneralRe: Is that possible to run an EXE file that is placed inside a data file ? Pin
sdancer7523-Nov-07 3:57
sdancer7523-Nov-07 3:57 
GeneralRe: Is that possible to run an EXE file that is placed inside a data file ? Pin
Iain Clarke, Warrior Programmer23-Nov-07 4:30
Iain Clarke, Warrior Programmer23-Nov-07 4:30 
GeneralRe: Is that possible to run an EXE file that is placed inside a data file ? Pin
sdancer7523-Nov-07 6:34
sdancer7523-Nov-07 6:34 
QuestionChecking a CWnd pointer Pin
Hadi Dayvary22-Nov-07 1:38
professionalHadi Dayvary22-Nov-07 1:38 
AnswerRe: Checking a CWnd pointer Pin
Paresh Chitte22-Nov-07 1:43
Paresh Chitte22-Nov-07 1:43 

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.