473,666 Members | 2,114 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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 1358
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 incompatibiliti es 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
89378
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 compilation error as #include expect filename. Anu help would be appreciated. thanx, John
7
10622
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 namespace std; : : vector<string>* getTyphoon()
19
3836
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 : #include <string> #include <iostream>
2
1893
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 the 32 header files found in section 17.4.1.2of the C++ standard." When I just use iostream, i get a messasge similar to "the functions cin and cout are undefined." I need help quickly.
8
4907
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 namespace std;' unless the std namespace was declared first. This triggered my curiosity, and I tried to find out what the ANSI C++ standard had to say about this. I'm unable to find a conclusion, and hope someone here have a clue to spare. ...
5
5705
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. ================================================================= Error 19: "CORBAManagerMessages.h", line 4 # Unexpected 'std'. using std::string; ^^^
5
1206
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 more up to date. How can I use my program to write C++ 6.0 the same way I am be instructed in class? Do I need to buy visual C++ 6.0 I already paid for one program I would like to make use of it at home it gives me more time to learn. Thanks...
1
2193
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 think one source of the problems is that the C code relies on old libraries. I tried changing <iostream.hto <iostreambut it introduced a handful of errors in the C code which I am hoping to avoid getting wrapped up in. I get the following...
6
60949
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 a C++ program with this: #include <iostream> using std::cout; using std::endl;
0
8445
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
8356
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
8781
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 tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
6198
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 presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
5664
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
4198
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
1
2771
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
2011
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
2
1776
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.