Just FYI -
"setAt()" is a Microsoft thing; it has to do with the Microsoft-specific/MFC "CString" class, not the standard C++ "string" class.
If your code has one Microsoft dependency, it's likely that sooner or later you'll encounter others, too.
Also (not applicable to this post), please use the "[Edit]" button to change your mind about a posting (don't just create a new posting if you don't need to), and please use the "[code]" tags to delimit source code (it makes it *so* much easier to read - and so much less unappealing to answer the question ;-))
Thanx in advance .. PSM