mailcsprasad wrote:
When to use STL classes and when to use MFC Container classes?
The decision to use any class over any other one must be made as late as
possible, when you have a real problem to solve. (Tip: Research
"Refactoring", including the "Replace Algorithm Refactor", to keep code
flexible and easy to change.)
However, in this specific case, don't use MFC, hence don't use its container
classes. The best Microsoft-oriented OO library for the Win32 platform is
WTL - Windows Template Library. And use this with STL containers in
preference to nearly anything else.
The reason is STL containers are most widely supported and documented, and
they have a better architecture than MFC. And MFC is all but repudiated;
it's a very poor library that will slow you down.
--
Phlip
http://c2.com/cgi/wiki?ZeekLand <-- NOT a blog!!!