i have one variable ( int score ). I need help to show this value into staticText.
I was try something like this
Code: Select all
char score_buff[10]
wchar_t score_str[10];
score_text = guienv->addStaticText(L"300", rect<s32>(180,310,230,340), false);
sprintf(score_buff,"%d",score1); // convert form int to char
sprintf(score_str, 10 , L"%s", score_buff); // convert char to wchar_t
score_text->setText(score1_str);
I will really be happy if somebody explain me how to do this ?
Thanx