Hi,
I'm getting lost. I'm reading stuff on the forum but I don't know what to conclude.
What I need is this: I have several Dlls that I (preferably) load dynamically (LoadLibrary). Even if this is not used, I would like to keep the code in a seperate dll (if possible).
Anyway, I need some global data that are available for all threads in my program, for all dlls.
This is called Memory Mapping I believe but I also saw something on CoTaskMemoryAlloc that could also be used for this.... I don't know for sure if I'm understanding this right though.
I already use this function to pass a UDT to a (inner-process) thread. I thought this was 'local' to the instance of the DLL, i.e. the thread (as seen from IIS) of my app.
The be exact: My app is running within IIS and linked via an ISAPI extension. I 'initialise' my app by a command that loads all variables into memory. The data mostly come from a database and are static during the running of the program. Updates to these variables would be done by shutting down IIS and restarting the app.
I basically pass the content of a table to an array which I would like to have available.
Hope someone can help.
Regards
Jeroen Brouwers
------------------
I'm getting lost. I'm reading stuff on the forum but I don't know what to conclude.
What I need is this: I have several Dlls that I (preferably) load dynamically (LoadLibrary). Even if this is not used, I would like to keep the code in a seperate dll (if possible).
Anyway, I need some global data that are available for all threads in my program, for all dlls.
This is called Memory Mapping I believe but I also saw something on CoTaskMemoryAlloc that could also be used for this.... I don't know for sure if I'm understanding this right though.
I already use this function to pass a UDT to a (inner-process) thread. I thought this was 'local' to the instance of the DLL, i.e. the thread (as seen from IIS) of my app.
The be exact: My app is running within IIS and linked via an ISAPI extension. I 'initialise' my app by a command that loads all variables into memory. The data mostly come from a database and are static during the running of the program. Updates to these variables would be done by shutting down IIS and restarting the app.
I basically pass the content of a table to an array which I would like to have available.
Hope someone can help.
Regards
Jeroen Brouwers
------------------
Comment