Connecting Tech Pros Worldwide Forums | Help | Site Map

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

Greg
Guest
 
Posts: n/a
#1: Nov 17 '05
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



--
Greg McPherran
www.McPherran.com

Greg
Guest
 
Posts: n/a
#2: Nov 17 '05

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


Regarding my question in this thread:

See
http://msdn.microsoft.com/library/de...yreference.asp

Based, on the above information, I seek to understand if and how these
Shared ATL-MFC are distinguished from New Win32 C++ Project --> "Add Support
for: ATL" (checkbox).

"Greg" wrote:
[color=blue]
> 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
>
>
>
> --
> Greg McPherran
> www.McPherran.com[/color]
Carl Daniel [VC++ MVP]
Guest
 
Posts: n/a
#3: Nov 17 '05

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


Greg wrote:[color=blue]
> Regarding my question in this thread:
>
> See
> http://msdn.microsoft.com/library/de...yreference.asp
>
> Based, on the above information, I seek to understand if and how these
> Shared ATL-MFC are distinguished from New Win32 C++ Project --> "Add
> Support
> for: ATL" (checkbox).[/color]

You might want to also post this question to microsoft.public.vc.atl.

-cd


Greg
Guest
 
Posts: n/a
#4: Nov 17 '05

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


Yes, but my point is that apparently these classes are not considered part of
ATL even though they're called "ATL". Apparently, these classes are now
general classes available for any VC++ program including just a minimal Win32.

http://msdn.microsoft.com/library/de...yreference.asp

I shall post in ATL though also and thank you for the suggestion.

"Carl Daniel [VC++ MVP]" wrote:
[color=blue]
> Greg wrote:[color=green]
> > Regarding my question in this thread:
> >
> > See
> > http://msdn.microsoft.com/library/de...yreference.asp
> >
> > Based, on the above information, I seek to understand if and how these
> > Shared ATL-MFC are distinguished from New Win32 C++ Project --> "Add
> > Support
> > for: ATL" (checkbox).[/color]
>
> You might want to also post this question to microsoft.public.vc.atl.
>
> -cd
>
>
>[/color]
Closed Thread