_LIT(KResourceFileName, "MultiLang.r%02d");
TFileName resFileName;
resFileName.Format(KResourceFileName, aLanguageIndex);
#if !defined(__WINS__) && !defined(__WINSCW__)
// Device
CompleteWithAppPath(resFileName);
#else
// Emulator
resFileName.Insert(0, KEmulatorPath);
#endif
TFileName resFileName;
resFileName.Format(KResourceFileName, aLanguageIndex);
#if !defined(__WINS__) && !defined(__WINSCW__)
// Device
CompleteWithAppPath(resFileName);
#else
// Emulator
resFileName.Insert(0, KEmulatorPath);
#endif
本文介绍了一种在软件中处理多语言资源文件的方法。通过使用特定的宏指令来格式化资源文件名,并根据不同的语言索引来确定加载哪个语言版本的资源。文中还展示了如何根据不同平台(如设备与模拟器)来调整资源路径。
1041

被折叠的 条评论
为什么被折叠?



