Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

How to convert System.AnsiString into char * ?

Status
Not open for further replies.

tehem

Programmer
Dec 13, 2000
6
FR
Yes!
how to convert System.AnsiString into char *?
In fact, it seems simple. I've got an Edit, and want his Text to be put in a char * var.
Could you help me?
thanks!
 
It is Very easy

String str;

char text[255];

str="Hello World";
strcpy(text,str.c_str());

hnd
hasso55@yahoo.com

 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top