Got a little problem...
First I'm passing out as a char array the following variable :
Edit1 being a TEdit.Code:Edit1->Text.c_str()
So I'm passing it to a second function that gets it and is supposed to give it's size by executing the following code :
(String is the variable name I gave to the char array coming into the second function) (also, I know there's no goal by this program, this is just a test on a bigger one )Code:int Length = sizeof(String); ShowMessage(AnsiString(Length));
But what the message box is always showing out is "3"... Whatever I put in the TEdit's it's always 3 that is shown in the msgbox; any idea?
Thx in advance!!!