How I can turn a variable of the System::String type to char[ ]
How I can put a System::String variable in a structure of data
How I can define a System::String to that it only has a maximum length of 10 characters and make an array
How I can turn a variable of the System::String type to char[ ]
How I can put a System::String variable in a structure of data
How I can define a System::String to that it only has a maximum length of 10 characters and make an array
Handling of System::String
ETricotti
> How I can turn a variable of the System::String type to char[ ]
http://msdn2.microsoft.com/library/3yd9f3ks(en-us,vs.80).aspx
> How I can put a System::String variable in a structure of data
What do you mean exactly Strings are always reference objects stored on the GC heap, they are never stored inline. Just having the handle to them as a data member is trivial:
value struct V
{
System::String ^s;
int i;
};
> How I can define a System::String to that it only has
> a maximum length of 10 characters
You cannot.
> and make an array
I am not sure I understand this part. There is a ToCharArray method on System::String.
Ronald Laeremans
Visual C++ team
Rocket Rick
It returns an IntPtr struct, how can I convert it to char[]
Thanks.
ScottEye
thanx
Zahid Saleem
I know string to it is an array of chars, but I want to make an array of strings for handling facility.
I tried to use System::String^s[5] but it says to me that if string wanted to use < Array String > but if use this sentence does not facilitate the handling to me of the Array (or I do not know like using it)