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

C / C++ / MFC

 
Question16-bit Windows program and 32-bit DLLs Pin
Krishnatv21-Jun-07 20:48
Krishnatv21-Jun-07 20:48 
QuestionRe: 16-bit Windows program and 32-bit DLLs Pin
David Crow22-Jun-07 2:43
David Crow22-Jun-07 2:43 
AnswerRe: 16-bit Windows program and 32-bit DLLs Pin
Mark Salsbery22-Jun-07 6:16
Mark Salsbery22-Jun-07 6:16 
AnswerRe: 16-bit Windows program and 32-bit DLLs Pin
Mark Salsbery22-Jun-07 6:21
Mark Salsbery22-Jun-07 6:21 
QuestionCList new and delete Pin
devvvy21-Jun-07 20:34
devvvy21-Jun-07 20:34 
AnswerRe: CList new and delete Pin
Cedric Moonen21-Jun-07 20:48
Cedric Moonen21-Jun-07 20:48 
GeneralRe: CList new and delete Pin
devvvy21-Jun-07 21:07
devvvy21-Jun-07 21:07 
GeneralRe: CList new and delete Pin
Cedric Moonen21-Jun-07 21:20
Cedric Moonen21-Jun-07 21:20 
In general, you add elements to the list and you don't keep the pointers to each individual elements (otherwise, why would you use a list ??). So, when you want to empty the list, you don't have those pointers directly but they are stored in the map. What you have to do is just iterate through your list and delete each item in the list and then call RemoveAll.

In other situations, it can also happen that you want to remove only one element from your list. Then, you simply delete this element and remove it from the list.

Hope that helps


Cédric Moonen
Software developer

Charting control [v1.2]

QuestionDisplaying text on a Dialog Pin
Suneet.0321-Jun-07 19:50
Suneet.0321-Jun-07 19:50 
AnswerRe: Displaying text on a Dialog Pin
Hamid_RT21-Jun-07 20:25
Hamid_RT21-Jun-07 20:25 
GeneralRe: Displaying text on a Dialog Pin
Suneet.0321-Jun-07 21:32
Suneet.0321-Jun-07 21:32 
AnswerRe: Displaying text on a Dialog Pin
zhang80060521-Jun-07 21:12
zhang80060521-Jun-07 21:12 
AnswerRe: Displaying text on a Dialog Pin
sps-itsec4621-Jun-07 21:14
sps-itsec4621-Jun-07 21:14 
GeneralRe: Displaying text on a Dialog Pin
Suneet.0321-Jun-07 22:29
Suneet.0321-Jun-07 22:29 
GeneralRe: Displaying text on a Dialog Pin
sps-itsec4622-Jun-07 0:14
sps-itsec4622-Jun-07 0:14 
AnswerRe: How to open message Queue with send and Receive access mode Pin
SandipG 21-Jun-07 20:49
SandipG 21-Jun-07 20:49 
Questionerror coming in class derived from CListVeiw Pin
neha.agarwal2721-Jun-07 19:35
neha.agarwal2721-Jun-07 19:35 
AnswerRe: error coming in class derived from CListVeiw Pin
Rajkumar R21-Jun-07 19:58
Rajkumar R21-Jun-07 19:58 
GeneralRe: error coming in class derived from CListVeiw Pin
neha.agarwal2721-Jun-07 20:06
neha.agarwal2721-Jun-07 20:06 
GeneralRe: error coming in class derived from CListVeiw Pin
neha.agarwal2721-Jun-07 20:41
neha.agarwal2721-Jun-07 20:41 
AnswerRe: error coming in class derived from CListVeiw Pin
Rajkumar R21-Jun-07 22:33
Rajkumar R21-Jun-07 22:33 
QuestionHow to OR Arrays Without loop Pin
SandipG 21-Jun-07 18:40
SandipG 21-Jun-07 18:40 
AnswerRe: How to OR Arrays Without loop Pin
Cyrilix21-Jun-07 18:43
Cyrilix21-Jun-07 18:43 
GeneralRe: How to OR Arrays Without loop Pin
SandipG 21-Jun-07 18:48
SandipG 21-Jun-07 18:48 
GeneralRe: How to OR Arrays Without loop Pin
Cyrilix21-Jun-07 20:05
Cyrilix21-Jun-07 20:05 

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.