On Tue, 18 Nov 2008 18:56:04 -0800 (PST), blackbiscuit
Post by blackbiscuitHi,
I think you just repeat what I have said.
I don't see anything in your original post about LoadLibrary, so I
don't see how I repeated anything you said.
I do think that if you want help, you will need to provide a clearer
description. In particular, how are the dlls loaded (how do you invoke
them)? Are they used in the main program? Are they used in other
programs?
Post by blackbiscuitPost by r***@pen_fact.comOn Tue, 11 Nov 2008 22:28:46 -0800 (PST), blackbiscuit
Post by blackbiscuitDear All,
Now in my current developing project, I have defined a global object
in the main program . In dlls, there are also some static object whose
constructor will use the global object in the main program. But the
problem is always the initialization of the dll is prior to the main
program. How can I do if I wanna the main program be initialized
first?
I hope someone will come up with an easier answer, but loading the DLL
dynamically (using LoadLibrary and GetProcAddress) will certainly let
you control when it is loaded, and thus initialized.
Post by blackbiscuitThank you very much!
Best,
Tony
-----------------------------------------
To reply to me, remove the underscores (_) from my email address (and please indicate which newsgroup and message).
Robert E. Zaret, eMVP
PenFact, Inc.
20 Park Plaza, Suite 400
Boston, MA 02116www.penfact.com
http://catb.org/~esr/faqs/smart-questions.html
-----------------------------------------
To reply to me, remove the underscores (_) from my email address (and please indicate which newsgroup and message).
Robert E. Zaret, eMVP
PenFact, Inc.
20 Park Plaza, Suite 400
Boston, MA 02116
www.penfact.com
Useful reading (be sure to read its disclaimer first):
http://catb.org/~esr/faqs/smart-questions.html