其他分享
首页 > 其他分享> > BCGControlBar本地化(汉化)详解

BCGControlBar本地化(汉化)详解

作者:互联网

BCGControlBar本地化机制提供了一个创建多语言应用程序的非常简单和可靠的方法。

BCGControlBar语言包文件:

本地化文件位于BCGCBPro\L.目录中,其中 - 语言名称前缀(FRA - 法国,ITA - 意大利,…)。特定语言资源DLLs位于BCGControlBar\Bin目录下:

BCGCBProResCHS.dll	 	Chinese	 	BCGCBProResITA.dll	 	Italian
BCGCBProResCSY.dll	 	Czech	 	BCGCBProResJPN.dll	 	Japanese
BCGCBProResDEN.dll	 	Danish	 	BCGCBProResKOR.dll	 	Korean
BCGCBProResDEU.dll	 	German	 	BCGCBProResPTG.dll	 	Portuguese
BCGCBProResDUT.dll	 	Dutch	 	BCGCBProResROM.dll	 	Romanian
BCGCBProResELL.dll	 	Greek	 	BCGCBProResRUS.dll	 	Russian
BCGCBProResESP.dll	 	Spanish	 	BCGCBProResSKY.dll	 	Slovak
BCGCBProResFRA.dll	 	French	 	BCGCBProResSLV.dll	 	Slovenian
BCGCBProResHUN.dll	 	Hungarian	 	BCGCBProResTRK.dll	 	Turkish

BCGControlBar DLL本地化:

  1. 请将以下成员加入到您的应用程序类中:
	HINSTANCE m_hinstBCGCBProRes;
  1. 在应用的InitiInstance()中添加DLL资源初始化:
	m_hinstBCGCBProRes = LoadLibrary (_T("BCGCBProRes***.dll"));    // *** - language
	BCGCBSetResourceHandle (m_hinstBCGCBProRes);
  1. 卸载ExitInstance中的DLL资源:
	FreeLibrary (m_hinstBCGCBProRes);

BCGControlBar静态库本地化:

如何将库资源翻译成新语言?

标签:本地化,BCGControlBar,DLL,详解,rc,dll,资源
来源: https://blog.csdn.net/wang161019/article/details/120286584