Display character '&' (ampersand) does not work

  • Hi,


    why will be the '&' (ampersand) not be shown.


    I have a NetDcuA5 with WinCe 6.0


    I use the following c++ code:


    SetDlgItemText(IDC_MY_STATIC_TEST, _T(" hallo mein '&' text"));


    It is just showing: hallo mein '' text


    Any help would be great.

  • Hello,


    assume it is the same reason as for "%"! "&" may be used for format purposes so try "&&" to got one "&" in your string.

    F&S Elektronik Systeme GmbH
    As this is an international forum, please try to post in English.
    Da dies ein internationales Forum ist, bitten wir darum, Beiträge möglichst in Englisch zu verfassen.

    Edited once, last by fs-support_ZU ().

  • The character & is used in many cases to underline the next character to show that it can be used as a shortcut. You must use two ampersands && to get one visible &. See https://support.microsoft.com/en-us/kb/261320


    Your F&S Support Team

    F&S Elektronik Systeme GmbH
    As this is an international forum, please try to post in English.
    Da dies ein internationales Forum ist, bitten wir darum, Beiträge möglichst in Englisch zu verfassen.