Tobias Oberstein wrote:
> and still it's a mystery to me (even after reading the sources) how
> in this particular case the single implementation (XPCOM class) behind
> this CLSID gets information about the ?type=XXX it was instantiated for.

It doesn't. The functions of the class probably use their arguments to 
check which mime type should be handled.

> 
>>The contract ID generally exists in a source file. One source file
>>could implement many components.
>>
> 
> seems we're talking about different things. I tried to make the following
> point: I don't want to write one implementation per parameter combination.
> I want to have one implementing class, taking the parameters either in
> a constructor
[...]
> or have a Init(int param1, int param2) method _automatically_ called
> with the values the client provided implicitely in the ContractID.

Well, this is not possible yet. You'll have to manually call your Init 
method.

-- 
"They that can give up essential liberty to obtain a little temporary
safety deserve neither liberty nor safety."
                                                  -- Benjamin Franklin


Reply via email to