This is a very complex subject. I actually wrote an article on this and chapter 9 of MFC internals which covers MFC and DLLs (extension and regular) in great detail. The article is on-line at http://www.vcdj.com.
-scot@stingray.com - Scot Wingo