Inheritance in ATL

Is there a convenient way to create a new ATL object in an existing
ATL-based DLL, and have it inherit the interface exposed by an existing
object? In other words, to this existing ClassView:

MyDLL classes
interface MyInterface

…add a second, newly created interface:

MyDLL classes
interface MyInterface
interface MyInterface2

…and have MyInterface2 inherit and expose MyInterface’s properties and
methods, without having to manually enter everything? I know COM supports
this, but I can’t figure out how to accomplish it with VC6’s ATL tools.

Thanks!

RLH

> methods, without having to manually enter everything? I know COM supports

this, but I can’t figure out how to accomplish it with VC6’s ATL tools.

Why not?
ATL is a ~300KB source - you can read the whole of it.

Max

At 01:14 AM 12/01/2000 +0300, you wrote:

> methods, without having to manually enter everything? I know COM supports
> this, but I can’t figure out how to accomplish it with VC6’s ATL tools.

Why not?
ATL is a ~300KB source - you can read the whole of it.

Yes, I could do it manually and may have to if there’s no automated
approach. But since (theoretically) the VC6 ATL Wizard is there to automate
some of this source file editing, I was hoping there was a way to take
advantage of that when creating a new interface which inherits an existing one.

RLH

> approach. But since (theoretically) the VC6 ATL Wizard is there to
automate

some of this source file editing, I was hoping there was a way to take

Wizards are not all-mighty. They can automate some routine tasks - but
usually are unable to do anything non-trivial.
Writing ATL-derived code by hand is not a complex task - just use the common
macros.

Max