Symbian
Symbian Developer Library

SYMBIAN OS V9.4

Feedback

[Index] [Previous] [Next]


How to create a animation DLL object

[Top]


Implementing CreateCAnimDllL()

Use CreateCAnimDllL() to construct the CAnimDll derived server side DLL class.

For example, for a DLL class CExampleAnimDll the following code must appear in the DLL source file:

// the only exported function in the DLLIMPORT_C CAnimDll* CreateCAnimDllL();
EXPORT_C CAnimDll* CreateCAnimDllL(){return new(ELeave) CExampleAnimDll;}

The use of both IMPORT_C and EXPORT_C statements is required to satisfy different compiler conventions.

Because this interface is defined by the window server, an animation DLL class must be linked against the window server definitions, otherwise linkage will fail. The mechanism is straightforward — include the following in your project mmp file:

TARGETTYPE ani
UID 268450594