if i have a class that has this function
and this memeberCode:void SetText(char *txt){Text=txt;};
and i then want to call the functionCode:char * Text;
why do i have problems if i do something like this:
Code:char temp[256];
int num = 100;
sprintf(temp,"number is: %d",num);
object->SetText(temp);
when i tried to do this the objects member Text just go set to nothing.
is there something wrong with my code?