Problem while displaying "Greek" and "Russian" Strings

Discussion in 'Win32' started by mail2madem, Oct 21, 2010.

  1. mail2madem

    mail2madem New Member

    Joined:
    Sep 26, 2008
    Messages:
    1
    Likes Received:
    0
    Trophy Points:
    0
    I am facing a strange problem.

    In my dialog application (Win32), I have a button control.
    I am loading a "Greek" string ("Επιλογή Εκτυπωτή")from a string DLL and trying to

    >Case-1
    display on the button control.

    >Case-2
    And also I am trying to use the same string to set the dialog's title.

    But here the problem is,on the button, text is displayed correctly, but dialog's title displayed as
    "?p???? ??t?p?t?"

    I am using (both for Case-1 and Case-2)

    >LoadStringW to load the string
    >SetWindowTextW to display

    While debugging, I found that strings are loaded properly in both the cases.
    I have also tried by changing code pages using setlocale API.

    But I couldn't solve this issue.
    Please provide me some tips so that I can move forward.

    Sample Code:

    WCHAR* chr = L"Επιλογή Εκτυπωτή";
    HWND hWnd = ::GetDlgItem(m_hWnd, IDC_BUTTON);

    ::SetWindowTextW(m_hWnd, chr);
    ::SetWindowTextW(hWnd, chr);


    Thanks in advance
    msr
     

Share This Page

  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice