Heikki Toivonen wrote:

> Not that I know of, but there are macros in nsISupportsUtils.h like 
> NS_INTERFACE_MAP_BEGIN etc. There aren't very widely used yet, but there 
> are SOME users. If you look at the macro comments you see they were 
> intended to be replaced with table QI at some point. 

Anyone who uses NS_IMPL_ISUPPORTS{1,2,3,4,5,..} also uses these 
INTERFACE_MAP macros...

On a side note, I've been hacking at them every so often to remove the 
old NS_IMPL_ISUPPORTS (note the lack of a number after it) with 
NS_IMPL_ISUPPORTS1 - I've got a whole tree with all the old macros 
removed, but it's alot of work to get them all reviewed and checked in :)

I once started to write the table-based interface out of Essential COM 
and it was pretty straight forward.. one of these days I'll try to 
finish it :)

                                        Alec

Wanna give it a go 
> (should be pretty easy if you have Essential COM lying around someplace;)?
> 
> Pierre Phaneuf wrote:
> 
>> Is there a table-based QueryInterface somewhere in there? There was talk
>> of them at a time, but I don't remember seeing any...
>> 
>> I have a GenericComponent shim template in XPLC that currently
>> implements AddRef and Release, but I would like to add the
>> QueryInterface to that, that'd be so nice! :-)


Reply via email to