-
int to string
im storing values in the registry by number, and i can loop through off the entries calling them by number. but for the loop since its an integer, how do i convert it to a string?
Code:
for(int i=1;i<=num;i++){
tmp = i;
registry.Read(tmp,title);
lst_favs.AddString(title);
}
thanks :)
-
You mean string from <string> or a simple char array?
If it's an array of characters, you can use itoa().
PHP Code:
char buffer[20];
itoa(mynumber, buffer,10);
-
ok ill try that, thanks.
i think itll accept a char array