No, that is not a solution. Read up on what a TCHAR is and what sizeof(TCHAR) gives you. That sizeof(text) isn't what you think it is.

Regards,

Paul McKenzie