Re: Trouble instantiatig callback object defined out-of-process
"MrAsm" <mrasm@usa.com> wrote in message
news:8goo63l54ngsok0pla52qgvrdbqbtbf651@4ax.com
I read that since VS.NET there is the "attributed" ATL thing.
Is the purpose of attributed extensions to avoid IDL files?
Yes, among other things. When processing attributed ATL source, compiler
generates an IDL file as a side effect.
What is the purpose of attributes?
In IDL, or in attributed ATL?
Are the IDL files always a must-have, when programming with ATL?
No in principle, but yes for all practical purposes. You can define your
interfaces in an .h file, but it becomes pretty boring pretty soon, and
you lose nice benefits of MIDL compiler (e.g generating a TLB, and/or
source code for proxy/stub DLL).
That's assuming you are using ATL to implement COM objects. There are
other uses for ATL, unrelated or distantly related to COM, that don't
have anything to do with IDL files (and thus don't require one).
--
With best wishes,
Igor Tandetnik
With sufficient thrust, pigs fly just fine. However, this is not
necessarily a good idea. It is hard to be sure where they are going to
land, and it could be dangerous sitting under them as they fly
overhead. -- RFC 1925