Visual C++ - FileStream
I'm trying to make a text editor with open, save, and font buttons.
I copied the code off the board in class and obviously incorrectly.
FileStream is an undeclared identifier.
Code as follows:
private: System::Void SaveBtn_Click(System::Object * sender, System::EventArgs * e)
SaveFileDialog * fd = new SaveFileDialog();
if(fd->ShowDialog() == DialogResult::OK)
FileStream* fs = new FileStream(fd->FileName, FileMode::OpenOrCreate);
StreamWriter * sw = new StreamWriter(fs);
Seems there was some code somewhere that described the FileStream object that you forgot to copy off the board.
No wait... is this C# code?[/edit]