Click here to Skip to main content
15,887,683 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Standard Object and Function names helper Pin
Chesnokov Yuriy16-Sep-10 0:20
professionalChesnokov Yuriy16-Sep-10 0:20 
GeneralRe: Standard Object and Function names helper Pin
Aescleal16-Sep-10 1:35
Aescleal16-Sep-10 1:35 
GeneralOT Pin
Richard MacCutchan18-Sep-10 3:10
mveRichard MacCutchan18-Sep-10 3:10 
AnswerRe: Standard Object and Function names helper Pin
Moak16-Sep-10 0:21
Moak16-Sep-10 0:21 
GeneralRe: Standard Object and Function names helper Pin
Chesnokov Yuriy16-Sep-10 1:09
professionalChesnokov Yuriy16-Sep-10 1:09 
GeneralRe: Standard Object and Function names helper Pin
Moak16-Sep-10 1:20
Moak16-Sep-10 1:20 
QuestionVector Error Pin
Nikesh Jagtap15-Sep-10 21:47
Nikesh Jagtap15-Sep-10 21:47 
AnswerRe: Vector Error PinPopular
Cedric Moonen15-Sep-10 22:04
Cedric Moonen15-Sep-10 22:04 
You can't erase an element from a vector by using an iterator that you will reuse later (in the for loop). What you have to do, is use the iterator returned by erase instead (but you shouldn't increment it, since it is already pointing to the next element).

Here is some pseudo-code:
while(iter!=v1.end())
{
   ....
   if(remove)
   {
      iter = v1.erase(iter);
   }
   else
   {
      iter++;
   }
}


PS: please use the pre tags to format your code properly when posting snippets of code.
Cédric Moonen
Software developer

Charting control [v3.0]
OpenGL game tutorial in C++

QuestionError during compilation Pin
arupsarkar15-Sep-10 16:48
arupsarkar15-Sep-10 16:48 
AnswerRe: Error during compilation Pin
Luc Pattyn15-Sep-10 17:16
sitebuilderLuc Pattyn15-Sep-10 17:16 
GeneralRe: Error during compilation Pin
arupsarkar15-Sep-10 18:30
arupsarkar15-Sep-10 18:30 
GeneralRe: Error during compilation Pin
Luc Pattyn16-Sep-10 0:55
sitebuilderLuc Pattyn16-Sep-10 0:55 
GeneralRe: Error during compilation Pin
David Crow16-Sep-10 2:55
David Crow16-Sep-10 2:55 
QuestionChanging the mouse pointer globally Pin
pjdriverdude15-Sep-10 9:56
pjdriverdude15-Sep-10 9:56 
GeneralRe: Changing the mouse pointer globally Pin
David Crow15-Sep-10 10:00
David Crow15-Sep-10 10:00 
GeneralRe: Changing the mouse pointer globally Pin
pjdriverdude15-Sep-10 10:40
pjdriverdude15-Sep-10 10:40 
AnswerRe: Changing the mouse pointer globally Pin
pjdriverdude16-Sep-10 5:08
pjdriverdude16-Sep-10 5:08 
Questionfatal error c1020: unexpected #endif [modified] Pin
AmbiguousName15-Sep-10 6:52
AmbiguousName15-Sep-10 6:52 
QuestionRe: fatal error c1020: unexpected #endif Pin
David Crow15-Sep-10 7:11
David Crow15-Sep-10 7:11 
AnswerRe: fatal error c1020: unexpected #endif Pin
Luc Pattyn15-Sep-10 7:18
sitebuilderLuc Pattyn15-Sep-10 7:18 
GeneralRe: fatal error c1020: unexpected #endif Pin
AmbiguousName15-Sep-10 19:13
AmbiguousName15-Sep-10 19:13 
GeneralRe: fatal error c1020: unexpected #endif Pin
Luc Pattyn16-Sep-10 0:57
sitebuilderLuc Pattyn16-Sep-10 0:57 
GeneralRe: fatal error c1020: unexpected #endif Pin
David Crow16-Sep-10 2:51
David Crow16-Sep-10 2:51 
AnswerRe: fatal error c1020: unexpected #endif Pin
Richard MacCutchan15-Sep-10 8:37
mveRichard MacCutchan15-Sep-10 8:37 
GeneralRe: fatal error c1020: unexpected #endif Pin
AmbiguousName15-Sep-10 19:11
AmbiguousName15-Sep-10 19:11 

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.