Adrian Herscu wrote:

> Hi all,
>
> I have some COM background, and I'm interested to learn more about XPCOM.
>
> So far, I understand that XPCOM stands for Cross Platform COM.
> But, I didn't understand what this really means.
>
> How exactly the "Cross Platform" goal is achieved?
> Or, in other words, what rules should I obey (as a XPCOM componet
> programmer) in order to build a "Cross Platform" component?


Components that are compiled are required to be recompiled on each 
target platform.  This means that any functionality that is platform 
dependent will require you to rewrite that part.  Components can be 
implemented in a scripting language such as Javascript may be 
distributed onto different platforms without any modifications.

The truth is that effort does go into thinking about cross platform 
implications when writing a component.  Most things have been pretty 
well abstracted by XPCOM, but when writing a component, you will have 
places that may be #ifdef per platform.

Hope this helps,

Doug Turner
[EMAIL PROTECTED]



Reply via email to