thank you. that works.

I have another question, though, as a result. How can I avoid typing (LPCTSTR) before every CString in a cout statement? Is there something I can put in the header, or some kind of macro I can make?

Also, how do I read the "CODE" sections of posts here? I see a long horizontal box below the word CODE - but I can't select/highlight it ...