none
grid32.ocx can't display Japanese in Japanese locale RRS feed

  • 问题

  • Hi,

        In one of our product in C++, we used the grid control grid32.ocx, but it can't show japanese in Japanese locale, seems only works in Chinese locale,  can you proivde some help on this? thanks a lot!

    woaiduoduo

    2011年8月5日 3:00

答案

全部回复

  • Hi,

     

    According to your description, it seems to be hard for us to find out the cause of your issue. So could you please provide us some more details ? Or if you don't mind, could you provide some sample code.

    We'll be glad to receive your reply and help you to resolve your issue.

     

    In addition, here are some information about localize:

    1: http://msdn.microsoft.com/zh-cn/library/0ktbafh9(v=VS.100).aspx

    2: http://msdn.microsoft.com/zh-cn/library/xa89kyh5.aspx 

     

    Best Regards,

    Rob


    Rob Pan [MSFT]
    MSDN Community Support | Feedback to us
    Get or Request Code Sample from Microsoft
    Please remember to mark the replies as answers if they help and unmark them if they provide no help.


    2011年8月8日 9:04
  • Hi Rob,

    Thanks for your reply.

    Because I am not sure if it's appropriate for me to post the source code here, I will describle the issue in more details:

     Basically we use different resource .dll in different language windows OS, and all the strings are compiled into Unicode, for japanese locale, seems there is no problem for windows title as well as other MFC controls such as list control, static etc, the only problem source is grid32.ocx, we use code like below:

    m_pGridCtrl->SetCol(2);
    strLabel.LoadString(IDS_WEEKLY);
     m_pGridCtrl->SetText(strLabel);

    to set the column headings for grid32.ocx, but it doesn't work in japannese locale, however, it really works when the locale is Chinese, I mean it can show Japanese column headings in Chinese locale,but can't show Japanese column headings in japanese locale, it's really weird, can you help on this? I don't know how grid32.ocx works intrernally.

    Best Regards,

    woaiduoduo

    2011年8月9日 9:28
  • Hi woaiduoduo,

     

    Could you please try to set different locale, such as English or Germany? Does it work correctly?

     

    Best Regards,

    Rob


    Rob Pan [MSFT]
    MSDN Community Support | Feedback to us
    Get or Request Code Sample from Microsoft
    Please remember to mark the replies as answers if they help and unmark them if they provide no help.

    2011年8月11日 8:45
  • Rob,

        yes, I have tried different locales to test this issue, it doesn't work in Japanese locale and English locale, only works in Chinese locale, even I changed the English operating system to Chinese locale, it still works. I am using windows XP OS, also I have seen some articale in Microsoft that grid32.ocx is no longer supported, but I am not sure if grid32.ocx has done the compatibility test on windows XP, also I have tried to create one dialog based sample app to test grid32.ocx, but in vs2005, even the vs2005 generated code will report error when compiling, we introduced this control in 1995, can you confirm whether this control is still working on windows XP and/or vs2005? thank you!

    Best Regards,

    Woaiduoduo

    2011年8月11日 9:09
  • Hi,

    grid32.ocx hasn't been supported. Here is the detail: http://support.microsoft.com/kb/195353/en-us

     

    Best Regards,

    Rob


    Rob Pan [MSFT]
    MSDN Community Support | Feedback to us
    Get or Request Code Sample from Microsoft
    Please remember to mark the replies as answers if they help and unmark them if they provide no help.


    • 已标记为答案 woaiduoduo 2011年8月18日 8:57
    2011年8月16日 9:29
  • Rob,

        Thanks for your help, so this issue is on our own now :)

    Woaiduoduo

    2011年8月18日 8:59