Gil Sudai wrote:
> is it possible to use NS_GET_IID on every interface ? i.e., does all the
> interfaces defined in XPCOM have the GetIID method?
> is it the responsibility of the interface creator to define the GetIID
> method, or does we get it from the XPIDL?
>
>
> --
> Gil Sudai.
>
>
XPIDL puts a static IID (GetIID) accessor function in the C++ header
file when its compiling IDL, but it appears as a C macro :-
NS_DEFINE_STATIC_IID_ACCESSOR(NS_IBOXOBJECT_IID)
However not all XPCOM objects are generated from IDL: they should be,
and you would be ill advised not to have an IDL description of the
interfaces of any objects you develop.