2009. 9. 13. 20:37

애플리케이션 리소스 Localization하기


  CWinApp상속받은 나의 App 클래스의 맴버로
HINSTANCE m_hInstDLL;
를 추가한 후
  OnInitInstance() 첫줄에

   if ((m_hInstDLL = ::LoadLibrary("mylocal.dll")) < HINSTANCE_ERROR)
   {
      return FALSE; // failed to load the localized resources
   }
   else
   {
      AfxSetResourceHandle(m_hInstDLL); // get resources from the DLL
   }

하고 OnExitIntance() 부에

   int CMyApp::ExitInstance()
   {
      FreeLibrary(m_hInstDLL);
      return CWinApp::ExitInstance();
   }

출처 : 인터넷 검색하면 나오는데 원본 출처는 불분명