dps
2010-03-01 18:43:09 UTC
Hi all,
as far as I know static variables in a dll are initialized when the
dll is loaded. I have the following situation: my executable links
with a dll from which I use nothing explicitly. When the statics are
initialized, a function is registered with a map in another dll. If I
don't call a function from the first dll nothing is registered, as the
statics do not get initialized. Is there a way (and possibly platform-
independent) to initialize the statics in a dll without using anything
from it?
thanks a lot!
as far as I know static variables in a dll are initialized when the
dll is loaded. I have the following situation: my executable links
with a dll from which I use nothing explicitly. When the statics are
initialized, a function is registered with a map in another dll. If I
don't call a function from the first dll nothing is registered, as the
statics do not get initialized. Is there a way (and possibly platform-
independent) to initialize the statics in a dll without using anything
from it?
thanks a lot!