Bo Yang <[EMAIL PROTECTED]> wrote:
> The Creating Xpcom component manual said, one only need the
> C++ head file when he want to use the xpcom components in his
> application. But, as far as I know, all components are reside
> in dlls. We at least need link aginst these dlls or the import
> libraries, do we?

No, that would be static linking. Dynamic linking involves LoadLibrary 
and GetProcAddress API calls (since you mention DLLs, I assume you are 
talking about Windows; other OSes provide similar facilities) and occurs 
entirely at runtime.

> But, wait, think a little more, if we need
> to link the dll or import library for the use of a class in the
> dll, where is the flexibility the XPCOM system provide?

We don't, so it's there.
-- 
With best wishes,
    Igor Tandetnik

With sufficient thrust, pigs fly just fine. However, this is not 
necessarily a good idea. It is hard to be sure where they are going to 
land, and it could be dangerous sitting under them as they fly 
overhead. -- RFC 1925


_______________________________________________
dev-tech-xpcom mailing list
[email protected]
https://lists.mozilla.org/listinfo/dev-tech-xpcom

Reply via email to