473,402 Members | 2,061 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,402 software developers and data experts.

Using iostream.h in VS 7.0

Hi all,

I have just port my C++ 6.0 project into C++ project of Visual Studio.NET.
However, .NET tell me that it can not find iostream.h. Some search on the
internet tell me that I should change the #include <iostream.h> into #include
<iostream>.

Because my project is very big, It's very difficult to change like that.

Can anyone help me to use <iostream.h> in Visual Studio .NET ?

Thank in advance
Nov 17 '05 #1
1 1348
Ly Hoang Hai wrote:
Hi all,

I have just port my C++ 6.0 project into C++ project of Visual Studio.NET.
However, .NET tell me that it can not find iostream.h. Some search on the
internet tell me that I should change the #include <iostream.h> into #include
<iostream>.

Because my project is very big, It's very difficult to change like that.

Can anyone help me to use <iostream.h> in Visual Studio .NET ?


I don't think there is any way, short of writing and implementing the
missing headers yourself. <iostream.h> is a non-standard header, and a
standard alternative has now existed for 7 years... A minimum
implementation might look like this:

//ostream.h
#include <ostream>
#include <ios.h>
using std::ostream;
using std::endl;
using std::flush;
//etc.

//iostream.h
#include <iostream>
#include <ostream.h> //to bring in the using declarations above
#include <istream.h>
using std::cin;
using std::cout;
using std::cerr;
using std::clog;
//etc for wide streams.

//do the same for other headers, making sure you include your .h
versions of headers they depend on.

Note though that there are lots of incompatibilities between Microsoft
legacy IOStreams and standard IOStreams, so your best bet is probably to
migrate the code - it should only take a couple of days?

Tom
Nov 17 '05 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

10
by: John Tiger | last post by:
Can anybody have idea about the difference between #include <iostream.h> and #include <iostream>. Is later one valid statement on any compiler. I tried compiling on MSVC second statement give...
7
by: Forecast | last post by:
I run the following code in UNIX compiled by g++ 3.3.2 successfully. : // proj2.cc: returns a dynamic vector and prints out at main~~ : // : #include <iostream> : #include <vector> : : using...
19
by: ernst.stiegler | last post by:
Hello, I just want to read a whole line from a console input. What I don't understand is that I always have to press ENTER twice in order to see the line I've entered. Here's my code : ...
2
by: Anirudh Ramesh | last post by:
I need to use gcc for a competition. I'm pretty fluent in turbo c++. I'm using rhide as the ide for gcc. When I use iostream.h, i get an "antequated or deprecated header file. consider using one of...
8
by: Petter Reinholdtsen | last post by:
I ran into a problem on HP-UX 11.00 the other day, where it refused to compile a program using 'using namespace std;' at the top. The reason seem to be that the compiler refuses to accept 'using...
5
by: Enos Meroka | last post by:
Hallo, I am a student doing my project in the university.. I have been trying to compile the program using HP -UX aCC compiler, however I keep on getting the following errors. ...
5
by: Charlie | last post by:
I am a student taking a computer class programmning with ms visual C++. The college is using ms visual C++ 6.0 on it's computers. I purchased ms visual studio.net (Academic) (ver 2003) which is...
1
by: mido | last post by:
I am currently trying to compile code which uses old C code with a C++ wrapper. It had compiled on earlier versions of software (within the past two years), but Maya needs an updated version. I...
6
by: Roger | last post by:
Hello, I'm pretty new to C++ programming, and I'm teaching myself the language using various sources. This sounds stupid, but I am really confused on this... I was wondering why we have to write...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.