Board index » cppbuilder » Byte array in AnsiString
Danny
CBuilder Developer |
Byte array in AnsiString2004-04-29 05:39:10 PM cppbuilder101 Hello, Is it possible to get a byte-array into a Ansi String object (I need to "cast" a byte-array to a AnsiString object) ? I tried to write directly to the *data pointer from AnsiString, but it is a private variable of the class... If there is a solution to construct a AnsiString object from a byte-array, what about the copy and assignment constructors in AnsiString, would they contain the complete byte-array, or would they truncate it at the first 0 byte (string termination) ? Thanks in advance. Regards, Danny |