Read-only archive of the All About Symbian forum (2001–2013) · About this archive

Legacy C Code ->Dll::Tls()

0 replies · 1,666 views · Started 06 October 2004

I want to integrate some engine code written in C. It has some but not much global data, maybe 100 bytes. The global data is local to each module but is used by procedures in that module.

Of course I can't build for the target because I now have "writeable static data in my DLLs".

I have been reading around for a solution and it seems you can use Dll::Tls() to store a small amount of data, and #define your globals to access data stored in there, but the examples are confusing.

Does anyone have nice example showing how to implement this?