M
Mark Prenter
Hi, I think I've got a really dumb question here: I started off with a
String* containing the string "03452". I took this value and converted it
to a __gc[] wchar_t array using ->ToCharArray(). So far so good. Now I've
got an array of single digits. This is what I want.
The first wchar_t array element now contains "0", the first character of my
original string. What I now want to do is convert this to an INT. So
instead of a char "0", it's an INT 0. I can't seem to figure out how to do
this. The closest I get is 48, which is the ASCII value of the char "0".
Please help. I've pulled out so much hair I've hardly got any left. How
can I do this?
Thanks,
/\/\ark
String* containing the string "03452". I took this value and converted it
to a __gc[] wchar_t array using ->ToCharArray(). So far so good. Now I've
got an array of single digits. This is what I want.
The first wchar_t array element now contains "0", the first character of my
original string. What I now want to do is convert this to an INT. So
instead of a char "0", it's an INT 0. I can't seem to figure out how to do
this. The closest I get is 48, which is the ASCII value of the char "0".
Please help. I've pulled out so much hair I've hardly got any left. How
can I do this?
Thanks,
/\/\ark