I'm trying to convert a VB 2005 program to VC++ 2005. I've got a problem here I can't figure out or find any decent help on. My C++ knowledge is limited to ANSI command-line programs so I'm really confused. The complier tells me this class doesn't have a copy constructor and this line doesn't work. This works fine in VB so I don't know what to do!
System::IO::FileStream fs = gcnew System::IO::FileStream(Main::ui_Open_WAD_Dialog->FileName->ToString(), System::IO::FileMode::Open, System::IO::FileAccess::Read);

C3673: class does not have a copy-constructor
anand.r
Prabagarane
Hi, I came upon this error as well and read this post to find the solution (thanks by the way!). I was just curious: what does the ^ symbol mean Is it similar to * in regular C/C++
Thanks!
JohnMo
gcnew returns a handle, identified by the ^ symbol. Change the code as follows:
System::IO::FileStream^ fs = gcnew ...
Just remember to delete the handle when you’re done, or better yet use a wrapper like auto_handle.
Cheers,
Kenny Kerr
http://weblogs.asp.net/kennykerr/
ZardoS42