Click here to Skip to main content
15,894,825 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: How Inline and MACRO function are work? Pin
David Crow16-Dec-10 17:44
David Crow16-Dec-10 17:44 
AnswerRe: How Inline and MACRO function are work? Pin
Richard MacCutchan16-Dec-10 21:27
mveRichard MacCutchan16-Dec-10 21:27 
AnswerRe: How Inline and MACRO function are work? Pin
Aescleal16-Dec-10 22:00
Aescleal16-Dec-10 22:00 
AnswerRe: How Inline and MACRO function are work? Pin
yu-jian17-Dec-10 3:54
yu-jian17-Dec-10 3:54 
QuestionShortcut key source code Pin
AK7758116-Dec-10 9:48
AK7758116-Dec-10 9:48 
AnswerRe: Shortcut key source code Pin
«_Superman_»16-Dec-10 12:28
professional«_Superman_»16-Dec-10 12:28 
QuestionWhich project Template for STL coding? Pin
Software200716-Dec-10 7:33
Software200716-Dec-10 7:33 
AnswerRe: Which project Template for STL coding? Pin
CPallini16-Dec-10 7:53
mveCPallini16-Dec-10 7:53 
GeneralRe: Which project Template for STL coding? Pin
Software200716-Dec-10 8:19
Software200716-Dec-10 8:19 
GeneralRe: Which project Template for STL coding? Pin
Maximilien16-Dec-10 9:07
Maximilien16-Dec-10 9:07 
AnswerRe: Which project Template for STL coding? Pin
Maximilien16-Dec-10 8:26
Maximilien16-Dec-10 8:26 
AnswerRe: Which project Template for STL coding? PinPopular
Richard MacCutchan16-Dec-10 9:51
mveRichard MacCutchan16-Dec-10 9:51 
GeneralRe: Which project Template for STL coding? Pin
Software200716-Dec-10 9:56
Software200716-Dec-10 9:56 
GeneralRe: Which project Template for STL coding? Pin
Ajay Vijayvargiya16-Dec-10 18:25
Ajay Vijayvargiya16-Dec-10 18:25 
GeneralRe: Which project Template for STL coding? Pin
Richard MacCutchan16-Dec-10 21:21
mveRichard MacCutchan16-Dec-10 21:21 
GeneralRe: Which project Template for STL coding? Pin
Ajay Vijayvargiya16-Dec-10 22:07
Ajay Vijayvargiya16-Dec-10 22:07 
GeneralRe: Which project Template for STL coding? Pin
Nemanja Trifunovic17-Dec-10 2:58
Nemanja Trifunovic17-Dec-10 2:58 
GeneralRe: Which project Template for STL coding? Pin
Alain Rist17-Dec-10 3:46
Alain Rist17-Dec-10 3:46 
GeneralRe: Which project Template for STL coding? Pin
Ajay Vijayvargiya17-Dec-10 7:54
Ajay Vijayvargiya17-Dec-10 7:54 
AnswerRe: Which project Template for STL coding? Pin
dazfuller16-Dec-10 19:00
dazfuller16-Dec-10 19:00 
AnswerRe: Which project Template for STL coding? Pin
User 433002816-Dec-10 19:08
User 433002816-Dec-10 19:08 
GeneralRe: Which project Template for STL coding? Pin
Emilio Garavaglia16-Dec-10 20:45
Emilio Garavaglia16-Dec-10 20:45 
QuestionCMap question. Pin
BarryPearlman16-Dec-10 7:25
BarryPearlman16-Dec-10 7:25 
AnswerRe: CMap question. Pin
CPallini16-Dec-10 7:51
mveCPallini16-Dec-10 7:51 
GeneralRe: CMap question. Pin
BarryPearlman17-Dec-10 5:06
BarryPearlman17-Dec-10 5:06 
Please allow me to take this to the next level. The map is used to hold class pointers cast to (DWORD)*. When retrieved (CMap->Lookup(...)), they are cast back to theit original type and used. The number of elements at any given point in time in the map varies depending upon how many classes have been created or destroyed. When the application closes, the remaining map entries are cast back to their original pointers then deleted; the map is then destroyed. Obviously, if I just destroy the map, I am left with memory leaks of varying classes.

The question occurs when I am down to just one map entry and it is time to close the application and destroy the last pointer cast DWORD*. How do I retrieve the last remaining item in the map?

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.