title: GetModuleHandleEx usage example. WTL internationalisation
body: <p>I am trying to do internationalization in a WTL GUI application .. in my drop down selection change handler (which is used for language selection I do something like this):</p>
  
  <pre><code>int selected = (int)::SendMessage(m_cbLang, CB_GETCURSEL,0,0);
  HMODULE hmod;
  int retCode = 0;
  switch(selected)
  {
  case 0:
      retCode =::GetModuleHandleEx(GET_MODULE_HANDLE_EX_FLAG_FROM_ADDRESS | GET_MODULE_HANDLE_EX_FLAG_PIN, NULL, &amp;hmod);
      ATL::_AtlBaseModule.SetResourceInstance(hmod);
      break;
  case 1:
  
      retCode =::GetModuleHandleEx(GET_MODULE_HANDLE_EX_FLAG_FROM_ADDRESS | GET_MODULE_HANDLE_EX_FLAG_PIN, L"GuiLibOther.dll", &amp;hmod);
      ATL::_AtlBaseModule.SetResourceInstance(hmod);
      break;
  }
  return S_OK;
  </code></pre>
  
  <p>Now, I really don't know how to use this function, although it is <a href="http://msdn.microsoft.com/en-us/library/windows/desktop/ms683200%28v=vs.85%29.aspx" rel="nofollow">here</a> , I don t know what the <em>lpModuleName</em> represents. The "GuiLibOther.dll" is a dll which contains the entire interface in another language.. all resources translated to another language.. I want the interface to change the language imediatelly after another language is selected. is this the right way?
  Case 0 return hmod = NULL</p>