Click here to Skip to main content
15,897,273 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Terminating Threads! Pin
Caslen16-Sep-10 6:04
Caslen16-Sep-10 6:04 
GeneralRe: Terminating Threads! Pin
David Crow16-Sep-10 6:45
David Crow16-Sep-10 6:45 
GeneralRe: Terminating Threads! Pin
Caslen16-Sep-10 22:31
Caslen16-Sep-10 22:31 
QuestionRe: Terminating Threads! Pin
David Crow17-Sep-10 2:56
David Crow17-Sep-10 2:56 
AnswerRe: Terminating Threads! Pin
Caslen17-Sep-10 3:04
Caslen17-Sep-10 3:04 
GeneralRe: Terminating Threads! Pin
David Crow17-Sep-10 3:09
David Crow17-Sep-10 3:09 
AnswerRe: Terminating Threads! Pin
Roger Allen16-Sep-10 5:54
Roger Allen16-Sep-10 5:54 
QuestionLine Drawing Pin
Benjamin Bruno16-Sep-10 1:17
Benjamin Bruno16-Sep-10 1:17 
AnswerRe: Line Drawing Pin
Shivanand Gupta16-Sep-10 1:28
Shivanand Gupta16-Sep-10 1:28 
QuestionRe: Line Drawing Pin
David Crow16-Sep-10 5:45
David Crow16-Sep-10 5:45 
AnswerRe: Line Drawing Pin
Cool_Dev16-Sep-10 4:56
Cool_Dev16-Sep-10 4:56 
QuestionTree Ctrl Pin
VVVimal16-Sep-10 0:18
VVVimal16-Sep-10 0:18 
AnswerRe: Tree Ctrl Pin
Niklas L16-Sep-10 1:09
Niklas L16-Sep-10 1:09 
QuestionStandard Object and Function names helper Pin
Chesnokov Yuriy15-Sep-10 22:59
professionalChesnokov Yuriy15-Sep-10 22:59 
AnswerRe: Standard Object and Function names helper Pin
Aescleal16-Sep-10 0:07
Aescleal16-Sep-10 0:07 
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 

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.