Article ID: 198846
Article Last Modified on 7/1/2004
HINSTANCE m_hInstResDLL;
#ifdef _DEBUG
// Load the debug version of the localized resources.
m_hInstResDLL = LoadLibrary("ResourceDlld.dll");
#else
// Load the release version of the localized resources.
m_hInstResDLL = LoadLibrary("ResourceDll.dll");
#endif
ASSERT( m_hInstResDLL != NULL );
int CMyApp::ExitInstance()
{
// In case you load multiple DLL's make sure to free them,
// and avoid calling FreeLibrary with a NULL pointer.
FreeLibrary(m_hInstResDLL);
return CWinApp::ExitInstance();
}
147149 "How to Localize Resources with Foundation Classes"
Additional query words: localize localization
Keywords: kbhowto kbintl kbintldev KB198846