I'm just trying to learn Visual C++ and I'm having a problem with the OpenFileDialog control. I'm trying to drag out the filename selected in to a text box, but MSDN has given me broken code.
Obiously, this will put it in a MsgBox, but I havea compile error.
System::IO::StreamReader streamReader = gcnew
1>c:\documents and settings\administrator\my documents\visual studio 2008\projects\forms1\forms1\dialog.h(152) : error C2664: 'System::IO::StreamReader::StreamReader(System::IO ::Stream ^)' : cannot convert parameter 1 from 'System::IO::StreamReader ^' to 'System::IO::Stream ^'
Can anybody give me more details about this please and how I can achieve this?