Hello, script902, you wrote:
S> I can not understand as to add the new additional interface to existing object.
You want to add the description of the new interface in an IDL-file?
Or you wish, having the interface description in an IDL-file, to force a wizard to generate the code for it?
Or the wizard should implement support of the given interface by a class without its declaration in an IDL-file?
If the first then the wizard does not help, it is necessary to describe the interface manually.
Also I will remind that in COM multiple inheritance is forbidden, that is the term "to add the interface" in
Case in point generally it is inapplicable.
If the second then there is nothing easier - select Add Class Wizard, ATL Simple Object or that there
Is better approaches, set parameters and press "Finish". All operation will be incurred by master ATL,
It is required to fill only methods-baby's dummies with sense (that is the code).
Also simply to add in the generated ATL-classes methods and properties, for this purpose there is a special
The wizard, only methods and properties should be added in the interface, instead of in a class.
If the third then again it is necessary to do without a wizard. To add support
The interface a class, it is necessary to add it in the list of inheritance and to implement all its basic methods.
And to place macro COM_INTERFACE_ENTRY in an appropriate place in the class declaration.
And generally, I do not advise to begin learning COM with ATL is corrupts and somewhat
Obscures true. Better at first a hardcore - implementation of COM-servers manually, judgement
IDispatch, IPersist, understanding apartments, connection points, , stream models, etc.
And only then programming with usage ATL which seems fantastic walk.