Click here to Skip to main content
15,886,919 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
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?
QuestionProxy aware application Pin
Manmohan2916-Dec-10 4:13
Manmohan2916-Dec-10 4:13 
AnswerRe: Proxy aware application Pin
«_Superman_»16-Dec-10 6:38
professional«_Superman_»16-Dec-10 6:38 
GeneralRe: Proxy aware application Pin
Manmohan2917-Dec-10 3:31
Manmohan2917-Dec-10 3:31 
QuestionProblem in windows7 Pin
bhanu_850916-Dec-10 0:46
bhanu_850916-Dec-10 0:46 
AnswerRe: Problem in windows7 Pin
phil.o16-Dec-10 1:07
professionalphil.o16-Dec-10 1:07 
AnswerRe: Problem in windows7 Pin
krmed16-Dec-10 3:05
krmed16-Dec-10 3:05 
GeneralRe: Problem in windows7 Pin
bhanu_850916-Dec-10 3:28
bhanu_850916-Dec-10 3:28 
GeneralRe: Problem in windows7 Pin
David Crow16-Dec-10 4:16
David Crow16-Dec-10 4:16 
GeneralRe: Problem in windows7 Pin
«_Superman_»16-Dec-10 7:05
professional«_Superman_»16-Dec-10 7:05 
GeneralRe: Problem in windows7 Pin
krmed16-Dec-10 7:06
krmed16-Dec-10 7:06 
QuestionHow to pass text file data from MFC line Graph? Pin
mathivanaan16-Dec-10 0:38
mathivanaan16-Dec-10 0:38 
AnswerRe: How to pass text file data from MFC line Graph? Pin
Rajesh R Subramanian16-Dec-10 0:42
professionalRajesh R Subramanian16-Dec-10 0:42 
AnswerRe: How to pass text file data from MFC line Graph? Pin
Cedric Moonen16-Dec-10 1:00
Cedric Moonen16-Dec-10 1:00 
QuestionHow to save TransParent IMage after drawing on another image? Pin
002comp15-Dec-10 19:55
002comp15-Dec-10 19:55 
AnswerRe: How to save TransParent IMage after drawing on another image? Pin
Rozis16-Dec-10 11:59
Rozis16-Dec-10 11:59 
GeneralRe: How to save TransParent IMage after drawing on another image? Pin
002comp16-Dec-10 18:15
002comp16-Dec-10 18:15 
QuestionSingleton Class Pin
pix_programmer15-Dec-10 18:00
pix_programmer15-Dec-10 18:00 

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.