Converting an AnsiString to Char*
June 25, 1997
Author: Embarcadero USA
Question and Answer Database
FAQ1360C.txt Converting an AnsiString to Char*
Category :VCL
Platform :All
Product :C++Builder 1.x
Question:
I am trying to convert a String to char* but keep receiving
the error:
"Cannot cast from System::AnsiString to Char*".
Below is my code. What am I doing wrong?
String s;
char* ch;
s…