M
mailcsprasad
When to use STL classes and when to use MFC Container classes?
mailcsprasad said:When to use STL classes and when to use MFC Container classes?
I agree, unfortunately I've not seen many jobs advertised where WTL isPhlip said:mailcsprasad wrote:
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.
When to use STL classes and when to use MFC Container classes?
Thorsten said:With VC++ I made the experience that you can't export STL containers from
a
dll to the application, except for vectors. For example I have a function
in a dll that returns an STL map. Now when I access that map I get an
access violation. Maybe this is a bug of my VC++ version (6.0 or
something).
Want to reply to this thread or ask your own question?
You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.