Click here to Skip to main content
15,918,742 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
QuestionGuiToolKit and ADO [modified] Pin
followait22-Nov-07 5:30
followait22-Nov-07 5:30 
QuestionHow to Copy one vector onto the END of another vector Pin
Larry Mills Sr22-Nov-07 5:13
Larry Mills Sr22-Nov-07 5:13 
AnswerRe: How to Copy one vector onto the END of another vector Pin
jhwurmbach22-Nov-07 5:40
jhwurmbach22-Nov-07 5:40 
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 
void CTrlMasterDlg::AddVecItem(const ITEM& vec)
{
// vector to be copied: iterator
//vector<CMyTrailer>::iterator m_ITItemvec;
//vector to hold all copied data: id m_Item
// set iterator at back of m_Item:
m_ITItem = m_Item.end();
// set vector to be copied at the front of it's vector:
m_ITItemvec = vec.begin();
while(m_ITItemvec != vec.end())
{
/*
m_Item.pushback(vec.);
m_ITItemvec++;
*/
// Is this right?
//std::copy(v1.begin(), v1.end(), std::back_inserter(v2));
std::copy(vec.begin(),vec.end(),back_insertor(m_Item));
}


}

So using my vectors: if I want everything from from vec to go into m_Item vector start at m_Itetm's last data(MyTrailer), is the above code correct? If not would you show me?

A C++ programming language novice, but striving to learn
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 
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 

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.