Symbian
Symbian Developer Library

SYMBIAN OS V9.4

Feedback

[Index] [Previous] [Next]


Locating a DLL

A polymorphic DLL is loaded by calling one of the Load() member functions of an RLibrary object.

Load() has three overloaded variants but they all behave in a similar way. They are prototyped:

TInt Load(const TDesC& aFileName,const TDesC& aPath,const TUidType& aType);
TInt Load(const TDesC& aFileName,const TUidType& aType);
TInt Load(const TDesC& aFileName,const TDesC& aPath=KNullDesC);

The arguments determine how the DLL is to be found. The rules are summarised as follows:

Note that in WINS debug mode, the system path is \epoc32\release\wins\udeb\ on the current PC drive; in WINS release mode, the system path is \epoc32\release\wins\urel\ on the current PC drive. For WINSCW, the paths are the same as for WINS, except that wins\ becomes winscw\.

Note also that, in contrast with the usual convention, aPath specifies a list of directories, each one separated by a semicolon.

See also: