might sound stupid, but i am having problems writing a function that will change the text of a window, and return the previous text..the function is a member of my window class..so i know the handle from there

PHP Code:
char *set_text (char *text
i dont know the size of the current text..i figured a way to do it using the new operator..but then i return the value and i cant use delete after return..
thanks