You will need to somehow tell the computer how to save the string. To do this, you would have to create an overload of operator << for your string type. Or you could just use std::string (since they already provide an overload for you)
im using embacardero builder 2010...which uses ansistrings instead of std strings.....so if i use string it gives me the same error but instead it says arguments of type unicodeString at the end of the error message
I personally don't like the sound of Rapid Application Development and C++ IDE being used in the same sentence.
If I want to make a Windows Application quick I just use a template.
@ OP: You need to turn that variable into an std::string. I've never heard of an ansiString so I'm not sure if it could just be explicitly cast but that would be the first thing I would try.