Click here to Skip to main content
16,008,175 members
Home / Discussions / ATL / WTL / STL
   

ATL / WTL / STL

 
GeneralRe: How to print an ATL 3.0 based Active X Pin
Peter Mares26-Nov-02 21:36
Peter Mares26-Nov-02 21:36 
GeneralRe: How to print an ATL 3.0 based Active X Pin
bojinyu27-Nov-02 2:31
bojinyu27-Nov-02 2:31 
GeneralRe: How to print an ATL 3.0 based Active X Pin
Peter Mares27-Nov-02 3:00
Peter Mares27-Nov-02 3:00 
QuestionHow do you clean out your registry.... Pin
Member 9625-Nov-02 20:18
Member 9625-Nov-02 20:18 
AnswerRe: How do you clean out your registry.... Pin
Michael Dunn25-Nov-02 20:35
sitebuilderMichael Dunn25-Nov-02 20:35 
QuestionHow to resolve "arning MIDL2039" Pin
TianYang25-Nov-02 18:05
TianYang25-Nov-02 18:05 
AnswerRe: How to resolve "arning MIDL2039" Pin
bojinyu26-Nov-02 14:59
bojinyu26-Nov-02 14:59 
GeneralMap and Functor :: STL Pin
valikac25-Nov-02 17:39
valikac25-Nov-02 17:39 
Hi.

How do you define a functor that handles elements in an STL map? For example:

-----
std::map<int, char="" *=""> testMap;

char *testChar = new char[10];
_strcpy(testChar, "November");

testMap.insert(std:air<int, char="" *="">(0, testChar));

...

// Now I want to deallocate all values in testMap.

std::for_each(testMap.begin(), testMap.end(), DeleteValue());
-----

How do you define DeleteValue functor that handles elements in an STL map?

Thanks,
Kuphryn
GeneralRe: Map and Functor :: STL Pin
Christian Graus25-Nov-02 18:09
protectorChristian Graus25-Nov-02 18:09 
GeneralRe: Map and Functor :: STL Pin
valikac25-Nov-02 18:37
valikac25-Nov-02 18:37 
GeneralRe: Map and Functor :: STL Pin
Christian Graus25-Nov-02 18:39
protectorChristian Graus25-Nov-02 18:39 
GeneralRe: Map and Functor :: STL Pin
valikac25-Nov-02 18:42
valikac25-Nov-02 18:42 
GeneralRe: Map and Functor :: STL Pin
Christian Graus25-Nov-02 19:30
protectorChristian Graus25-Nov-02 19:30 
GeneralRe: Map and Functor :: STL Pin
Joaquín M López Muñoz25-Nov-02 20:26
Joaquín M López Muñoz25-Nov-02 20:26 
GeneralOT: What's with the base class? Pin
Michael Dunn25-Nov-02 20:33
sitebuilderMichael Dunn25-Nov-02 20:33 
GeneralRe: OT: What's with the base class? Pin
Joaquín M López Muñoz25-Nov-02 20:47
Joaquín M López Muñoz25-Nov-02 20:47 
GeneralRe: OT: What's with the base class? Pin
Michael Dunn25-Nov-02 20:59
sitebuilderMichael Dunn25-Nov-02 20:59 
GeneralRe: OT: What's with the base class? Pin
Joaquín M López Muñoz25-Nov-02 21:15
Joaquín M López Muñoz25-Nov-02 21:15 
GeneralRe: OT: What's with the base class? Pin
Tim Smith26-Nov-02 8:05
Tim Smith26-Nov-02 8:05 
GeneralRe: Map and Functor :: STL Pin
valikac26-Nov-02 4:27
valikac26-Nov-02 4:27 
GeneralUnique COM Object Pin
TianYang24-Nov-02 19:18
TianYang24-Nov-02 19:18 
GeneralRe: Unique COM Object Pin
Joaquín M López Muñoz25-Nov-02 3:51
Joaquín M López Muñoz25-Nov-02 3:51 
GeneralRe: Unique COM Object Pin
TianYang25-Nov-02 13:36
TianYang25-Nov-02 13:36 
GeneralRe: Unique COM Object Pin
Member 9626-Nov-02 13:54
Member 9626-Nov-02 13:54 
GeneralATL 7 Books Pin
Sean Cundiff22-Nov-02 6:36
Sean Cundiff22-Nov-02 6:36 

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.