Hi,
How can I get the ASCII (integer) value of a Character in C++ (and vice versa)? In PAscal you have therefore int = ORD(char) and char = CHR(int). What are the equivalents in C++?
Background:
I want to read data from an Excel file. I'v saved it as dbf and connected with a TTable. Works OK. But some characters are ill formed. E.g. an é (e with accent) in Excel becomes an unreadable character in my TTable. To solve this problem I want to scan the string and replace the bad characters on the basis of the underlying ASCII/integer values of the chars.
Thanks for your help
Henk
How can I get the ASCII (integer) value of a Character in C++ (and vice versa)? In PAscal you have therefore int = ORD(char) and char = CHR(int). What are the equivalents in C++?
Background:
I want to read data from an Excel file. I'v saved it as dbf and connected with a TTable. Works OK. But some characters are ill formed. E.g. an é (e with accent) in Excel becomes an unreadable character in my TTable. To solve this problem I want to scan the string and replace the bad characters on the basis of the underlying ASCII/integer values of the chars.
Thanks for your help
Henk