On 12.12.2005, at 17:37 PM, Aaron Ballman wrote:
Yup, you need to read the docs for DllMain (on MSDN) for this
little tidbit...
"The entry-point function should perform only simple initialization
or termination tasks. It must not call the LoadLibrary or
LoadLibraryEx function (or a function that calls these functions),
because this may create dependency loops in the DLL load order.
This can result in a DLL being used before the system has executed
its initialization code. Similarly, the entry-point function must
not call the FreeLibrary function (or a function that calls
FreeLibrary) during process termination, because this can result in
a DLL being used after the system has executed its termination code."
~Aaron
So basically what I need to do here to be safe is to load the UXTheme
if it has not been loaded in the Control_Init function, and reference
count it so that it does not get unloaded until there is no control
left on the screen.
Is this correct understanding ?
Thanks
--
______________________________________________________________________
Björn Eiríksson bjorn at einhugur dot com
Einhugur Software
http://www.einhugur.com/
______________________________________________________________________
Einhugur Software has sold its products in 50 countries world wide.
______________________________________________________________________
For support: support at einhugur dot com
To post on the maillist: einhugur at yahoogroups dot com
_______________________________________________
Unsubscribe or switch delivery mode:
<http://www.realsoftware.com/support/listmanager/>
Search the archives of this list here:
<http://support.realsoftware.com/listarchives/lists.html>
|