Ok, I found the solution, just: clinebuf << szCmdLine; ..works. I was too used to 'clinebuf << szCmdLine << ends;' assignments.. Cheers.. Anthony Your use of Yahoo! Groups is subject to http://docs.yahoo.com/info/terms/