Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsFree MagazinesWhite PapersSubmit Content
Discussion GroupsASP.NETWindows FormsLanguages.NET FrameworkVisual Studio.NET
Articles.NET FrameworkASP.NETToolsWindows Forms
.NET DirectoryOpen Source ProjectsUser GroupsWeb Resources
Related Topics
Visual Basic 6SQL ServerMS AccessOther DB ProductsMS Server ProductsMore Topics ...

.NET Forum / Languages / C++ Libraries / June 2005

Tip: Looking for answers? Try searching our database.

ifstream upgrade?

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Maynard - 10 Jun 2005 13:08 GMT
I'm attempting to upgrade code written w/ VC++ 6.0 to .NET.  I'm aware of
most of the "major" changes from 6.0 to .NET, but subtle changes keep popping
up that I'm having difficulty finding documentation on.  

For example, several user defined classes store an ifstream data member.  In
the copy constructor, the assignment operator is used to copy an ifstream
reference passed into the constructor into the class' ifstream data member.  
In 6.0 this appears to have been acceptable (although perhaps not valid), but
in .NET it results in a compile-time error (operator= not defined for
ifstream object).

Two questions...is my observation on the ifstream assignment operator
correct?  And, is there a good resource where such subltle changes may be
documented for upgrading 6.0 code to .NET?

Thanks for your help in advance!
Ronald Laeremans [MSFT] - 17 Jun 2005 21:59 GMT
> I'm attempting to upgrade code written w/ VC++ 6.0 to .NET.  I'm aware of
> most of the "major" changes from 6.0 to .NET, but subtle changes keep popping
[quoted text clipped - 12 lines]
>
> Thanks for your help in advance!
Hi,

This is the most comprehensive list that we have in the documentation:
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/vccore/html/_co
re_port_to_the_standard_c.2b2b_.library.asp


And yes, according to the standard none of the iostreams are copy
constructible.

Ronald Laeremans
Visual C++ team

Rate this thread:







Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.