visual c++ 2005 Express Edition vs char type
-
Hi I've written very simple code to explain my problem: char znak = 'a'; String ^ yhy = znak.ToString(); And my question is: Why yhy=="97", and not just yhy=="a" how can i write to the yhy the letter 'a' from the znak variable , i don't want its ASCII representation... i want just 'a' please help visual c++ 2005 Express Edition -- modified at 10:10 Wednesday 7th February, 2007
-
Hi I've written very simple code to explain my problem: char znak = 'a'; String ^ yhy = znak.ToString(); And my question is: Why yhy=="97", and not just yhy=="a" how can i write to the yhy the letter 'a' from the znak variable , i don't want its ASCII representation... i want just 'a' please help visual c++ 2005 Express Edition -- modified at 10:10 Wednesday 7th February, 2007
This would be better asked here on the C++/CLI board[^] A char is a byte. You've requested the string representation of a byte by using ToString(). Can't you use something like: String ^ yhy = "a"; or String ^ yhy = gcnew String("a");
-
This would be better asked here on the C++/CLI board[^] A char is a byte. You've requested the string representation of a byte by using ToString(). Can't you use something like: String ^ yhy = "a"; or String ^ yhy = gcnew String("a");
I can't use: String ^yhy="a"; because important data is in the variable znak But I used gcnew: char znak='a'; Str ^yhy; Str = gcnew String(&znak); Thx Mark for your reply, I didn't know how to convert variables in vc++ gcnew String(const wchar_t *value) <--:O that's good haha:] I've just read about it in vc++ help
-
I can't use: String ^yhy="a"; because important data is in the variable znak But I used gcnew: char znak='a'; Str ^yhy; Str = gcnew String(&znak); Thx Mark for your reply, I didn't know how to convert variables in vc++ gcnew String(const wchar_t *value) <--:O that's good haha:] I've just read about it in vc++ help
If you post your answer to correct forum you can get your answer early ;)
WhiteSky
-
If you post your answer to correct forum you can get your answer early ;)
WhiteSky
-
I know i know i'm sorry i used wrong place to talk about my problem. Fortunately i've got the solution, so thanks again.
No problem;)
WhiteSky