Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
C++ Strings
#1
I hate them so much. ".ToString()" was nice and simple in C#. C++ makes everything hard and gives me errors.

Code:
ofstream file;
             file.open ("output.txt");
             file << Output->Text;
             file.close();

Here I am trying to save everything from a textbox (Output) to a *.txt file, but I get an error about converting between types. How do I make this work?
Reply


Messages In This Thread
C++ Strings - by Hazzy - 2010-08-23, 10:53 PM
C++ Strings - by Fiel - 2010-08-23, 11:01 PM
C++ Strings - by Russt - 2010-08-23, 11:28 PM
C++ Strings - by Hazzy - 2010-08-23, 11:42 PM
C++ Strings - by Fiel - 2010-08-23, 11:46 PM
C++ Strings - by Hazzy - 2010-08-23, 11:49 PM
C++ Strings - by Russt - 2010-08-23, 11:52 PM
C++ Strings - by Spaz - 2010-08-24, 08:45 PM
C++ Strings - by Hazzy - 2010-08-24, 08:57 PM
C++ Strings - by Kortestanov - 2010-08-25, 05:45 PM
C++ Strings - by IImaplers - 2010-08-26, 02:30 PM

Forum Jump:


Users browsing this thread: 1 Guest(s)