Extending ATL COM Object Dual Interfaces

Tech-Archive recommends: Fix windows errors by optimizing your registry

From: Doug C. Mace (dcmace3_at_NOSPAMadelphia.net)
Date: 06/26/04


Date: Sat, 26 Jun 2004 10:28:27 -0400

Alexander or Igor,

I have a need to extend existing CoClass functionality with dual interfaces
and searching for viable solutions. I discovered a April 1999, Windows
Developer Journal article by Howard Silver titled "Extending ATL COM
Objects". Are you familiar with this article? I tried the solution in VB and
it seems work but need an opinion to determine if it contains any flaws or
breaks COM rules. I didn't want to post the entire article and solution in
the group since its lengthy. However, I can zip up the article and code
snippets and transmit to either of you experts if you have private email.

Can't seem to find a lot of information on the subject so looking for
sources of information. Also, the CoClass must contain dual interfaces to
support scripting clients as well as vTable support for early binding.

Your help would be greatly appreciated.

Doug