simi
December 28th, 1999, 05:06 AM
I need to create an ActiveX exe and ActiveX dll for a project. These components will need to contain some state data (especially the ActiveX exe which it will also open the ActiveX dll and keep it alive)
However If I use a global variable in a module then these variables are created for every thread of the application. And if a new thread opens the app then these variables need to be read from a file etc.
With the ActiveX exe it is OK as I can make it a single thread and global single instance, but what can I do with the dll?
How can I have only one set of common variables for all threads in an ActiveX dll?
Is it possible?
Thank you
DS
However If I use a global variable in a module then these variables are created for every thread of the application. And if a new thread opens the app then these variables need to be read from a file etc.
With the ActiveX exe it is OK as I can make it a single thread and global single instance, but what can I do with the dll?
How can I have only one set of common variables for all threads in an ActiveX dll?
Is it possible?
Thank you
DS