Brew模拟器显示中文问题,请高手帮忙,多谢!
SDK版本:BREWSDK401SP05.exe
字符串资源:
Strings Encoding="Unicode">
<String Id="1001" Name="IDS_STRING_A">
<Text>中</Text>
代码:
『
AECHAR* pch = (AECHAR*)L"中文";
AECHAR str[] = {0x6C49,0x5B57,0x0000};//Unicode[汉字]
switch (eCode)
{
// App is told it is starting up
case EVT_APP_START:
IDISPLAY_ClearScreen( pMe->a.m_pIDisplay );
ISHELL_LoadResString(pMe->a.m_pIShell,RES_FILE, IDS_STRING_A, pMe->szbuf,sizeof(pMe->szbuf));
IDISPLAY_DrawText( pMe->a.m_pIDisplay, // What
AEE_FONT_NORMAL, // What font
str, //pch , pMe->szbuf // How many chars
-1, 0, 0, 0, // Where & clip
IDF_ALIGN_CENTER | IDF_ALIGN_MIDDLE );
IDISPLAY_Update (pMe->a.m_pIDisplay);
return(TRUE);
』
使用代码中的字符串,还是资源中的字符串中文,都不能正常显示,请高手帮忙,多谢!