rdmenezes / crashrpt

Automatically exported from code.google.com/p/crashrpt
0 stars 0 forks source link

Does not Support Chinese Application Name? #54

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
Does not Support Chinese Application Name?

Ver: 1.2.6_r804

code example:

    CR_INSTALL_INFO info;
    memset(&info, 0, sizeof(CR_INSTALL_INFO));
    info.cb = sizeof(CR_INSTALL_INFO);

    CString strAppName;
    strAppName.LoadString(IDR_MAINFRAME); // Multi-language Application
                                          // (English & Chinese)
    info.pszAppName = strAppName; // Define application name.

    ......

    // Install crash handlers.
    m_pCrashInstaller = new CrAutoInstallHelper(&info);
    ATLASSERT(m_pCrashInstaller->m_nInstallStatus==0); 

    if(m_pCrashInstaller->m_nInstallStatus != 0)
    {
        TCHAR buff[256];
        crGetLastErrorMsg(buff, 256);
        MessageBox(NULL, buff, _T("crInstall error"), MB_OK);
        return FALSE;
    }

Original issue reported on code.google.com by dreamexcel@gmail.com on 16 Sep 2010 at 6:24

GoogleCodeExporter commented 9 years ago
or:

    ......

    info.pszAppName = _T("应用程序名称");

    ......

Original comment by dreamexcel@gmail.com on 16 Sep 2010 at 6:29

GoogleCodeExporter commented 9 years ago
The problem is because tinyxml doesn't accept unicode file names. Maybe I will 
replace tinyxml with another xml-processing library.

Original comment by zexspect...@gmail.com on 17 Sep 2010 at 3:35

GoogleCodeExporter commented 9 years ago
[deleted comment]
GoogleCodeExporter commented 9 years ago
[deleted comment]
GoogleCodeExporter commented 9 years ago
tinyxml can support UTF8 encoded text file
I am using it now and it works correctly, either Unicode Projects Or MBSC 
Projects.

e.g

<?xml version="1.0" encoding="utf-8"?>
<Sniffer>
  <!--界面-->
  <UI>
    <!--语言-->
    <Language>En</Language>
  </UI>

  <!--设置-->
  <Settings>
    <!--数据保存路径-->
    <DataSavePath>C:\Program Files\无线实时多通道数据包监听器\Data\</DataSavePath>

    <!--数据备份路径-->
    <DataBackupPath>C:\Program Files\无线实时多通道数据包监听器\Backup\</DataBackupPath>

  </Settings>
</Sniffer>

Original comment by dreamexcel@gmail.com on 19 Sep 2010 at 3:13

GoogleCodeExporter commented 9 years ago
The issue with Chineese characters is fixed in v.1.2.7

Original comment by zexspect...@gmail.com on 10 Oct 2010 at 2:38

GoogleCodeExporter commented 9 years ago

Original comment by zexspect...@gmail.com on 10 Oct 2010 at 2:38