This topic provides information about implementing CreateCAnimDllL().
Use CreateCAnimDllL() to construct the CAnimDll derived server side DLL class. For example, for a DLL class called CExampleAnimDll the following code would appear in the DLL source file:
// the only exported function in the DLL IMPORT_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
Copyright ©2010 Nokia Corporation and/or its subsidiary(-ies).
All rights
reserved. Unless otherwise stated, these materials are provided under the terms of the Eclipse Public License
v1.0.