Hi
i am using borland C++ 6, my question regarding the following code
void __fastcall TForm1::Button1Click(TObject *Sender)
{
char* S = Edit1->Text.c_str();
Edit2->Text = strlen(S); //gives erroneous result
AnsiString st = Edit1->Text;
Edit3->Text = st.Length(); //gives correct...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.