stringcharc++builderwidestringansistring

Definitions of: AnsiString, WideString, String, char[], char*, BSTR,


This is a followup to this question

AnsiString is a class, too? And string? It is a class? And a char[]?

Can we say a WideString is a wrapper over double-byte characters, AnsiString is a wrapper over single-byte characters, and char[] is an array of single-byte characters? string not so sure what it is...

Not sure about the diferent kind of string types I have in Code Builder C++ 2007 available and its portability.


Solution

  • AnsiString and BSTR are non portable, while std::string, char [] and char* are completely portable.