Hi All,
What is the difference between ActiveX control created by using
ATL COM Appwizard and
MFC ActiveX controlWizard.
Regards
Bharathi
Printable View
Hi All,
What is the difference between ActiveX control created by using
ATL COM Appwizard and
MFC ActiveX controlWizard.
Regards
Bharathi
ATL has several advantages over MFC. The size of the target code for ATL controls is smaller. ATL uses multiple inheritance and upcasting to implement interfaces, whereas MFC uses handle/body classes by default. ATL provides for greater code reuse through templates. A default ATL does not contain much of the old OLE stuff you will find in a default MFC control.
Read about all this and more in
ATL Internals by Chris Sells and Brent Rector.
Generally ATL is used for creating lieght-weight controls ! Their size is very small , compare to MFC ActiveXs.
Refer MSDN for good material !