Witam, mam problem chce wczytać coś z pliku txt do ritch boxa w visual studio c++ 2013. Niestety ciagle mam błąd a nie wiem co jest zbytnio źle, prosze o pomoc
if (openFileDialog1->ShowDialog() == System::Windows::Forms::DialogResult::OK)
{
System::IO::StreamReader ^ sr = gcnew;
System::IO::StreamReader(openFileDialog1->FileName);
richTextBox1 System::Windows::Forms::RichTextBox(sr->ReadToEnd());
sr->Close();
}