Starting from Symbian OS 9, the swiftvideos executable file is always in .exe format. That’s why we can define global variables. How about .dll? I just noticed today that EKA2 (EPOC Kernel Architecture 2), the kernel used by Symbian OS 9 as well as 8.0b and 8.1b, allow static variable. There is a macro, called EPOCALLOWDLLDATA, that needs to be defined in the .mmp file. For example:
TARGET my.dll
TARGETTYPE dll
EPOCALLOWDLLDATA
Bonus Links
- Static data - Official documentation of Symbian OS v9.1.
- Symbian OS support for writeable static data in DLLs - paper from Symbian web site (PDF format).
0 comments:
Post a Comment