Symbian Developer Library

SYMBIAN OS V6.1 EDITION FOR C++

[Index] [Glossary] [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=_L(""));

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.

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

See also: