Jump to content

This is a ready-only archive of the InstallSite Forum. You cannot post any new content here. / Dies ist ein Archiv des InstallSite Forums. Hier können keine neuen Beiträge veröffentlicht werden.

HELP PLS: String Problem

1 reply to this topic


  • Members
  • 9 posts

Posted 06 April 2004 - 04:16

We have an encryption component that generates strings which might contain '†' character in between. A string that has this "†" character, is not getting displayed as it is when using MessageBox. When i try to add the string to registry, it is replaced by space. When i try to see the decimal value of the character that contains "†" it return 8224 which is an impossible ASC character.

szRegVal = "adsf†adsf";
SprintfBox(MB_OK, @TITLE_MAIN, "String: %s, Chr: %c, Dec: %d, Hex: %lx", szRegVal, szRegVal[4], szRegVal[4], szRegVal[4]);

Displays the following content in messagebox
Your Application Name
String: adsf†adsf, Chr: , Dec: 8224, Hex: 2020

Because of this reason, we have to restrict users not to use some set of characters.

Pls help me solve this issue. Thanks in advance.

Edited by shyam, 06 April 2004 - 18:38.

Taco Bell

Taco Bell

    IS6 Expert

  • Moderators
  • 1,281 posts

Posted 06 April 2004 - 19:34

He's using InstallShield 6.2, but cross posted, so please respond to the original post. Thank you.
user posted image