Visual C++ .NET 2003

  • Thread starter Thread starter Michelle
  • Start date Start date
M

Michelle

I am unable to recompile on Visual C++.NET 2003 because
stream.h and iostream.h are not in the include files.
When I try to use fstream and iostream without the .h it
give me more errors. As I look in the fstream File given
in the include files, there is no ofstream declaration,
only basic_ofstream and explicit_ofstream. What is the
deal with taking out standard libraries such as
fstream.h? Please help.
 
Michelle said:
I am unable to recompile on Visual C++.NET 2003 because
stream.h and iostream.h are not in the include files.
When I try to use fstream and iostream without the .h it
give me more errors. As I look in the fstream File given
in the include files, there is no ofstream declaration,
only basic_ofstream and explicit_ofstream. What is the
deal with taking out standard libraries such as
fstream.h? Please help.

I don't have Visual C++.NET 2003 but here's my guess: The names of the two
header files according to the C++ Standard are stream and iostream - without
".h". stream.h and iostream.h don't belong to the C++ Standard. As you used
these header files before you might have used classes or methods either that
are not part of the C++ Standard.

Boris
 
Michelle said:
I am unable to recompile on Visual C++.NET 2003 because
stream.h and iostream.h are not in the include files.
When I try to use fstream and iostream without the .h it
give me more errors. As I look in the fstream File given
in the include files, there is no ofstream declaration,
only basic_ofstream and explicit_ofstream. What is the
deal with taking out standard libraries such as
fstream.h? Please help.

Shot in the dark.
When you switched your #includes to the new headers, did you also add (below
the imports)

using namespace std;

??
If not, that's probably your problem.
FWIW, removing the legacy .h versions is a move to compliance with standard
C++.
 
Back
Top