new operator in DllMain of MFC Extension Dll

Posted by Picaro De Vosio on Stack Overflow See other posts from Stack Overflow or by Picaro De Vosio
Published on 2010-04-22T07:56:41Z Indexed on 2010/04/22 8:03 UTC
Read the original article Hit count: 286

Filed under:
|
|
|

Hi,

Dll best practices document from Microsoft available Here recommends avoiding use of memory management function from the dynamic C Run-Time (CRT) within DllMain. But DllMain function of MFC Extension DLL is dynamically allocating the memory for CDynLinkLibrary in the code snippet available at MSDN "http://msdn.microsoft.com/en-us/library/1btd5ea3%28v=VS.80%29.aspx".

Is it a violation of Dll Best Practices or ok to use in MFC extension DLL?

thanks

© Stack Overflow or respective owner

Related posts about mfc

Related posts about dll