hello, I am using visual c++ 2005 and I am trying to take a value that a user selects on a combo box and then output it to a file, but with the code I have it seems I cannot output a string to a file as it has to be a char
how can you get around this?
String^ alert = alertbox->Text;
file << alert;
error C2679: binary '<<' : no operator found which takes a right-hand operand of type 'System::String ^' (or there is no acceptable conversion)
Reply With Quote