473,414 Members | 1,563 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,414 software developers and data experts.

converting to studio 2003 en 2005

hello all,

is it possible to convert a visual studio 5 or 6 project/workspace
in one go to 2003 or 2005 withou errors.
i have tried it but i received several errors.
one of them was: cannot find iostream.h.
when i had inserted iostream manually,
from a former version of studio,
i received 23 errors while my project was errorless
in vstudio 6.

m. knoester
Jan 9 '06 #1
8 2645
On Mon, 9 Jan 2006 01:40:22 +0100, "marco 2" <re*********@planet.nl>
wrote:
hello all,

is it possible to convert a visual studio 5 or 6 project/workspace
in one go to 2003 or 2005 withou errors.
i have tried it but i received several errors.
one of them was: cannot find iostream.h.
when i had inserted iostream manually,
from a former version of studio,
i received 23 errors while my project was errorless
in vstudio 6.

m. knoester


It's not a conversion issue (which would have been off-topic here, so
you're lucky that it isn't!), it's an error caused by your project
using a header file that doesn't exist in standard C++ - iostream.h.

Visual Studio 5/6 had a header file named iostream.h for compatibility
with older code. However, you should #include <iostream>, not #include
<iostream.h>. Remove the .h and you won't have any problems.
Jan 9 '06 #2
W Marsh wrote:
On Mon, 9 Jan 2006 01:40:22 +0100, "marco 2" <re*********@planet.nl>
wrote:
hello all,

is it possible to convert a visual studio 5 or 6 project/workspace
in one go to 2003 or 2005 withou errors.
i have tried it but i received several errors.
one of them was: cannot find iostream.h.
when i had inserted iostream manually,
from a former version of studio,
i received 23 errors while my project was errorless
in vstudio 6.

m. knoester


It's not a conversion issue (which would have been off-topic here, so
you're lucky that it isn't!), it's an error caused by your project
using a header file that doesn't exist in standard C++ - iostream.h.

Visual Studio 5/6 had a header file named iostream.h for compatibility
with older code. However, you should #include <iostream>, not #include
<iostream.h>. Remove the .h and you won't have any problems.

You also need to add this line after the #include directives:

using namespace std;
Jan 9 '06 #3
On Mon, 09 Jan 2006 01:35:51 GMT, Tydr Schnubbis <fa**@address.dude>
wrote:
W Marsh wrote:
On Mon, 9 Jan 2006 01:40:22 +0100, "marco 2" <re*********@planet.nl>
wrote:
hello all,

is it possible to convert a visual studio 5 or 6 project/workspace
in one go to 2003 or 2005 withou errors.
i have tried it but i received several errors.
one of them was: cannot find iostream.h.
when i had inserted iostream manually,
from a former version of studio,
i received 23 errors while my project was errorless
in vstudio 6.

m. knoester


It's not a conversion issue (which would have been off-topic here, so
you're lucky that it isn't!), it's an error caused by your project
using a header file that doesn't exist in standard C++ - iostream.h.

Visual Studio 5/6 had a header file named iostream.h for compatibility
with older code. However, you should #include <iostream>, not #include
<iostream.h>. Remove the .h and you won't have any problems.

You also need to add this line after the #include directives:

using namespace std;


You need to do no such thing. Bringing in the whole of std into global
scope is generally considered a bad thing to do. I think that Tydr
Schnubbis should ask himself why things are done before he suggests
doing them.

Your existing code probably references everything it needs from std in
its own way - you don't need to add this pointless line unless your
compiler complains (in which case you should consider more sensible
namespace resolution).
Jan 9 '06 #4
On Mon, 09 Jan 2006 01:20:05 +0000 in comp.lang.c++, W Marsh
<wa*********@gmail.com> wrote,
It's not a conversion issue (which would have been off-topic here, so
you're lucky that it isn't!), it's an error caused by your project
using a header file that doesn't exist in standard C++ - iostream.h.


Nice save!

Jan 9 '06 #5
|| is it possible to convert a visual studio 5 or 6
|| project/workspace
|| in one go to 2003 or 2005 withou errors.
Yes it is!!

Try

# include <iostream>

Jan 9 '06 #6
marco 2 wrote:
hello all,

is it possible to convert a visual studio 5 or 6 project/workspace
in one go to 2003 or 2005 withou errors.


Well, that depends what the errors are.

VS 2003 and 2005 are much more c++ compliant than VC6, which was
released before the standard was finished.

Ben Pope
--
I'm not just a number. To many, I'm known as a string...
Jan 9 '06 #7

Tydr Schnubbis wrote:
W Marsh wrote:
You also need to add this line after the #include directives:

using namespace std;


Assuming this is being done in non-header files, it is better to put

using std::cout;
using std::cin;
using std::ostream;
using std::istream;
using std::endl;

as required. If you're very lazy then write a header file, maybe call
it iostream2.h, and put all that in there.

That's for a quick fix though.

Even better, given that you are working in an environment with global
find and replace is to replace all instance of cout, cin, ostream,
istream, endl (match whole word only) with std:: in front. And then you
can also replace any std::std:: with std::

Jan 9 '06 #8
On 9 Jan 2006 05:34:05 -0800, "Earl Purple" <ea********@gmail.com>
wrote:

Tydr Schnubbis wrote:
W Marsh wrote:
You also need to add this line after the #include directives:

using namespace std;

Excuse me? W Marsh did NOT write this! W Marsh said it was a /bad/
idea to do such a thing. You've somehow mixed up my name with Tydr
Schnubbis' name.

Assuming this is being done in non-header files, it is better to put

using std::cout;
using std::cin;
using std::ostream;
using std::istream;
using std::endl;

as required. If you're very lazy then write a header file, maybe call
it iostream2.h, and put all that in there.

That's for a quick fix though.

Even better, given that you are working in an environment with global
find and replace is to replace all instance of cout, cin, ostream,
istream, endl (match whole word only) with std:: in front. And then you
can also replace any std::std:: with std::

Jan 9 '06 #9

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

Similar topics

0
by: Rich | last post by:
(1) Is there a better place to pose the question below? (2) I am starting to convert my enterprise solution from VS 2003 (.NET v1.1.4322) to VS 2005 Professional (.NET v2.0.50727). The entire...
0
by: Sergio Martins | last post by:
I have a web site in vb.net 2003 that I what to convert to vb.net 2005. I open my web site in the visual studio 2005 by Local IIS option. I follow the steps of the visual studio conversion wizard....
1
by: Dan Munk | last post by:
Hello, I have a large project exclusively made up of interfaces (several hundred) that define the business objects used in our system. Heavy inheritance and aggregation are used in the project....
6
by: Dennis D. | last post by:
Having problems converting Murach's Beginning Visual Basic.net (Prince) and Microsoft Press' Programming Visual Basic.net (Balena) examples for use in VB.net 2005 Express. The VS conversion wizard...
1
by: Blasting Cap | last post by:
I had a copy of a project that was working in Visual Studio 2003 and Framework 1.1. After a computer crash, I was given VS 2005 and am having more than a little difficulty getting things to open...
6
by: Nathan Sokalski | last post by:
I recently converted some ASP.NET 1.1 projects of mine, created with Visual Studio .NET 2003, to Web Application Projects in Visual Studio .NET 2005 so that I could use ASP.NET 2.0 (All my ASP.NET...
1
by: Adish Solanki | last post by:
We have a MFC win32 desktop application written in Visual C++. We were using Visula studio 2003 as the editor and everything was compiling, linking and working fine. Since we want to move to .Net...
7
by: Coleen | last post by:
Does anyone have any good detailed information on the conversion process? We are in the process of converting 2 projects from 2003 to 2005 and have some conversion errors that I can not find...
4
by: Vadim | last post by:
Hello, I need to converting project that done on Visual Studio 2005 to Visual Studio 2003. What the best way to do this? Vadim Vilkhov
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
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
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...
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
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
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...
0
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...

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.