Re: Using ATL in MFC 7.1
From: Headache (rquirk_at_tandbergtv.com)
Date: 11/19/04
- Next message: Sergey Kochkarev: "Re: dialog based application with multiple laguage"
- Previous message: txemuki: "Positioning a window"
- In reply to: Shrishail Rana: "Using ATL in MFC 7.1"
- Messages sorted by: [ date ] [ thread ]
Date: 19 Nov 2004 01:31:22 -0800
"Shrishail Rana" <srana@hotpop.com> wrote in message news:<OB$HEGVzEHA.3820@TK2MSFTNGP11.phx.gbl>...
> Hi
>
> I want to use some of the ATL classes in MFC (Dialog/DOC View Application).
> Dev Env is VS 2003.
>
> Do I have to take special steps or just to include the ATL header files and
> start using the classes. Since ATL has lot of dependencies on CComModule. Do
> I have to declare a variable of that class.
You use the headers of the classes you wish to use! Normally you will
use CComPtr, CComQIPtr etc. A popular header is, therefore, AtlBase.h.
I don't know why you would want to use CComModule in a MFC
application. CComModule is the ATL equivalent of CWinApp. It doesn't
strike me as a particularly bright idea to have essentially two
application objects in the context of one process ...
- Next message: Sergey Kochkarev: "Re: dialog based application with multiple laguage"
- Previous message: txemuki: "Positioning a window"
- In reply to: Shrishail Rana: "Using ATL in MFC 7.1"
- Messages sorted by: [ date ] [ thread ]
Relevant Pages
|