I have a question about capabilities.
Consider the case of an exe and a dll. The dll exports a base class. The
..exe implements this class, in such a way that the implementation needs a
capability. In other words, the call which needs the capability is part of
the .exe and not part of the dll.
In this case, does the dll needs the capability?
I would expect it doesn't, because the dll doesn't make the call, the exe
does.
--
Sander van der Wal
www.mBrainSoftware.com
On Mon, 17 Jul 2006 17:37:27 +0100, Sander van der Wal
<[email protected]> wrote:
> I have a question about capabilities.
>
> Consider the case of an exe and a dll. The dll exports a base class. The
> .exe implements this class, in such a way that the implementation needs a
> capability. In other words, the call which needs the capability is part
> of
> the .exe and not part of the dll.
>
> In this case, does the dll needs the capability?
>
Yes - the DLL won't load if it doesn't have all the capabilities of the
EXE.
> I would expect it doesn't, because the dll doesn't make the call, the exe
> does.
>
Capabilities are determined by the process, not by where the code came
from.
--
Alan Montgomery
/"\
\ / ASCII ribbon campaign
X against HTML mail
/ \ and postings - est. June 1998
The DLL does need the capability, because the EXE will have the capability
and any DLLs that an EXE wants to load must have at least the same
capabilities as the EXE (i.e. an EXE can't load a DLL that is less trusted
than itself).
Mark
Symbian Developer Network