Click here to Skip to main content
16,005,473 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: ShellExecute Pin
David Crow12-Feb-07 2:36
David Crow12-Feb-07 2:36 
QuestionSelecting polygons Pin
m.dietz11-Feb-07 22:20
m.dietz11-Feb-07 22:20 
AnswerRe: Selecting polygons Pin
Cedric Moonen11-Feb-07 23:11
Cedric Moonen11-Feb-07 23:11 
AnswerRe: Selecting polygons Pin
beko11-Feb-07 23:43
beko11-Feb-07 23:43 
GeneralRe: Selecting polygons Pin
m.dietz12-Feb-07 1:02
m.dietz12-Feb-07 1:02 
AnswerRe: Selecting polygons Pin
Mark Salsbery12-Feb-07 6:43
Mark Salsbery12-Feb-07 6:43 
QuestionNow, how to delete? Pin
Astricks11-Feb-07 22:06
Astricks11-Feb-07 22:06 
AnswerRe: Now, how to delete? [modified] Pin
jhwurmbach11-Feb-07 22:27
jhwurmbach11-Feb-07 22:27 
Astricks wrote:
lst_mySObj.erase(*mySObj_iter);


Did you even bother to read the MSDN helptext?
Or a good Book?
Josuttis, "The C++ Standard Library" and
Myers, "Effective STL"
are always within arms lenght here.


The correct parameter is the iterator, not the object.
So stop dereferencing the iterator and write
lst_mySObj.erase(mySObj_iter);


-- moified at 4:43 Monday 12th February, 2007
Clarification


"We trained hard, but it seemed that every time we were beginning to form up into teams we would be reorganised. I was to learn later in life that we tend to meet any new situation by reorganising: and a wonderful method it can be for creating the illusion of progress, while producing confusion, inefficiency and demoralisation."

-- Caius Petronius, Roman Consul, 66 A.D.

GeneralRe: Now, how to delete? Pin
Astricks11-Feb-07 22:48
Astricks11-Feb-07 22:48 
GeneralRe: Now, how to delete? Pin
jhwurmbach11-Feb-07 23:04
jhwurmbach11-Feb-07 23:04 
GeneralRe: Now, how to delete? Pin
Astricks11-Feb-07 22:50
Astricks11-Feb-07 22:50 
GeneralRe: Now, how to delete? Pin
Hamid_RT12-Feb-07 6:56
Hamid_RT12-Feb-07 6:56 
GeneralRe: Now, how to delete? Pin
jhwurmbach12-Feb-07 6:58
jhwurmbach12-Feb-07 6:58 
GeneralRe: Now, how to delete? Pin
Hamid_RT12-Feb-07 7:15
Hamid_RT12-Feb-07 7:15 
GeneralRe: Now, how to delete? Pin
toxcct12-Feb-07 20:25
toxcct12-Feb-07 20:25 
AnswerRe: Now, how to delete? Pin
toxcct11-Feb-07 22:28
toxcct11-Feb-07 22:28 
GeneralRe: Now, how to delete? Pin
Astricks11-Feb-07 22:48
Astricks11-Feb-07 22:48 
Questionclass library Pin
dalbhide bipin11-Feb-07 21:03
dalbhide bipin11-Feb-07 21:03 
AnswerRe: class library Pin
Cedric Moonen11-Feb-07 21:10
Cedric Moonen11-Feb-07 21:10 
GeneralRe: class library Pin
dalbhide bipin11-Feb-07 21:37
dalbhide bipin11-Feb-07 21:37 
GeneralRe: class library Pin
Cedric Moonen11-Feb-07 23:15
Cedric Moonen11-Feb-07 23:15 
QuestionThe best place for ReadFile() Pin
awwase11-Feb-07 19:45
awwase11-Feb-07 19:45 
AnswerRe: The best place for ReadFile() Pin
Ram Murali11-Feb-07 20:19
Ram Murali11-Feb-07 20:19 
AnswerRe: The best place for ReadFile() Pin
Roger Stoltz11-Feb-07 21:58
Roger Stoltz11-Feb-07 21:58 
GeneralRe: The best place for ReadFile() Pin
awwase12-Feb-07 4:04
awwase12-Feb-07 4:04 

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.