Using ATL Classes (especially ATL MFC Shared Classes) in a Win32 A

G

Guest

I seek to understand ATL better. When I create a Win32 Project (App or DLL)
the option to add support for ATL (or MFC) is not selectable. It is only
selectable for a Win32 Console App. However, it seems that ATL-MFC Shared
classes, e.g. CString, CStringT, and the new CRect, can be added to the
project and work fine. All that is required is to include the needed ATL
header (e.g. #include <atlbase.h>, #include <atlcom.h>, #include <atlstr.h>
etc.).

I have two questions related to this:

1. Can these new ATL-MFC Shared classes such as CString, CStringT, CRect,
CImage, etc. be used in any VC++ Win32 (non-MFC, non-ATL) Project whether it
be App or DLL?

2. If these ATL-MFC Shared classes can be used in any Win32 project, then
what does the Add Support for: ATL checkbox refer to? It does not seem that
it refers to being able to use Classes such as the new CStringT and CRect
(ATL MFC Shared classes). So what does it refer to?

Thank You
 

Ask a Question

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.

Ask a Question

Top