Re: Localization help... (stange InitInstance behavior)
"Igor Tandetnik" wrote:
InitInstance is not a class or namespace name, so the notation
InitInstance::_AtlBaseModule doesn't make any sense to me.
Sorry for the confusion. What I am trying to get at is that the
_AtlBaseModule member of CWinApp is different from the _AtlBaseModule of
MyDll even though MyDll inherits from CWinApp
Note that CWinApp is an MFC class, while CAtlBaseModule is an ATL class.
The two libraries know (almost) nothing about each other, and don't
interact in any way. You seem to expect that CWinApp::InitInstance would
somehow set up or initialize _AtlBaseModule. It doesn't.
Well when I step into CWinApp::InitInstance I get this
m_hLangResourceDLL = LoadAppLangResourceDLL();
if(m_hLangResourceDLL != NULL)
So to me it looks like it is trying to configure _AtlBaseModule with the
correct localized .dll which is what I want. The confusing part for me is why
do I then have to call
MyDll::InitInstance for localization to work if I already called the
CWinApp::InitInstance() base class method.
Anyway, you seem to have solved your problem, right? Do you have any
No the work around seems to have taken care of the problem. Thank you.