473,473 Members | 2,166 Online
Bytes | Software Development & Data Engineering Community
Create Post

Home Posts Topics Members FAQ

Migrating from Visual C++ 6 to C++.NET

Hi,

I'm trying to compile a project in C++.Net which was built using Visual C++
6. I'm getting some major compile errors and need to find a solution soon. I
can either try and convert the project so it is compatible with .NET (which I
think will be error prone and risky) or I can downgrade to Visual C++ 6 and
build the project there. The problems I'm having are this -

1. I've tried using the recommended resolutions to Migrate my project and
they dont work.

2. I dont think it is possible to downgrade to Visual C++ 6 from Visual
C++.net as the downgrade page for this option leads to a dead page. Hopefully
this is possible however and someone will correct me.

Any views or tips appreciated,

Thanks,
David
Nov 17 '05 #1
2 1689
David++ wrote:
Hi,

I'm trying to compile a project in C++.Net which was built using
Visual C++
6. I'm getting some major compile errors and need to find a solution
soon. I can either try and convert the project so it is compatible
with .NET (which I think will be error prone and risky) or I can
downgrade to Visual C++ 6 and build the project there. The problems
I'm having are this -

1. I've tried using the recommended resolutions to Migrate my project
and they dont work.
Such as? Don't work how?

It'd help if you could post some representative code and the error messages
that you're getting.

Typical problems in porting code from VC6 include:

- Lack of the 'typename' keyword in places where the C++ standard (and
VC7.1+) require it.
- Dependency on the obsolete <iostream.h> version of I/O streams (use
<iostream> instead).
- Dependency on names being in the global namespace that are now (correctly)
in the ::std namespace.

In converting the project itself from VC6 to VC7 or later, the most common
problem is that of compilation options being converted improperly - in
particular, the project conversion has a nasty habit of turning all of your
VC6 per-project options into per-file options in the converted project,
which can be very confusing when you subsequently try to change project
options and find that nothing's changing in your build.

2. I dont think it is possible to downgrade to Visual C++ 6 from
Visual C++.net as the downgrade page for this option leads to a dead
page. Hopefully this is possible however and someone will correct me.


VS6 is still included in MSDN Professional and above, and is still available
for downgrade (although it's no longer supported).

-cd
Nov 17 '05 #2
Hi Carl,

Thanks for the reply. I managed to sort the problems I was having. Someone
here in the office has VC++ 6 (which was unbeknowns to me until today) so I
just changed seats, compilation errors cleared right up. Thanks for all the
info you provided. This is very useful for future situations which might
arise.

Best Regards,

David Ross

"Carl Daniel [VC++ MVP]" wrote:
David++ wrote:
Hi,

I'm trying to compile a project in C++.Net which was built using
Visual C++
6. I'm getting some major compile errors and need to find a solution
soon. I can either try and convert the project so it is compatible
with .NET (which I think will be error prone and risky) or I can
downgrade to Visual C++ 6 and build the project there. The problems
I'm having are this -

1. I've tried using the recommended resolutions to Migrate my project
and they dont work.


Such as? Don't work how?

It'd help if you could post some representative code and the error messages
that you're getting.

Typical problems in porting code from VC6 include:

- Lack of the 'typename' keyword in places where the C++ standard (and
VC7.1+) require it.
- Dependency on the obsolete <iostream.h> version of I/O streams (use
<iostream> instead).
- Dependency on names being in the global namespace that are now (correctly)
in the ::std namespace.

In converting the project itself from VC6 to VC7 or later, the most common
problem is that of compilation options being converted improperly - in
particular, the project conversion has a nasty habit of turning all of your
VC6 per-project options into per-file options in the converted project,
which can be very confusing when you subsequently try to change project
options and find that nothing's changing in your build.

2. I dont think it is possible to downgrade to Visual C++ 6 from
Visual C++.net as the downgrade page for this option leads to a dead
page. Hopefully this is possible however and someone will correct me.


VS6 is still included in MSDN Professional and above, and is still available
for downgrade (although it's no longer supported).

-cd

Nov 17 '05 #3

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

Similar topics

1
by: Kiran Kumar | last post by:
Hi All, We have an application developed in Visual Basic for Load distribution and scheduling of automation testing scripts for Regression Testing. We have planned for migrating this tool to...
0
by: Pieter | last post by:
Hi, I migrated one of my solutions(VB.NET 1.1, containing a Windowds Forms project and a Class Library project) to the 2.0 Framework using the inbuild-wizard. After migrating the...
3
by: Mike Doyle | last post by:
Hi, I'm looking at migrating our existing from Visual Studio (6.00) C++ code to the .NET version of C++ (unmanaged) Can anyone point me towards documention or an overview of this ? Thanks in...
3
by: BobRoyAce | last post by:
I would really appreciate recommendations for sources of materials on migrating ASP applications to ASP.NET (books, URL's, etc.). Also, is there a magazine that is particularly good for .NET stuff....
11
by: danip | last post by:
Hi there, I need to do the following: 1. Migrate a whole solution (with tens of projects) from VC 6.0 to VC 8.0. The project has a lot of MFC templates like CArray, and many error are poping out,...
13
by: Matt Fielder | last post by:
First off, if this is better posted in another group that qualifies as a manged group, please let me know. I currently have an application written in VB.Net using MSDE as the database. Current...
6
by: phnimx | last post by:
I'm attempting to migrate a predominately MFC application that I've just inherited from Visual Studio.NET 2003 to Visual Studio 2005. I've managed to clean up a myriad of compile and link errors...
0
sangeetha jagannathan
by: sangeetha jagannathan | last post by:
visual c++ .net 2003 is also called as visual c++ 7.1. now i am migrating my project which is built on visual c++ 6.0 to visual studio .net 2003 is there any spacific procedure to migrate it. i...
2
by: Maqsood Ahmed | last post by:
Hello, We have started our migrating our application which is currently running on .NET Framework 1.1 SP1 to .NET Framework 2.0 SP1. We didn't have Visual Styles enabled in our application due to...
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,...
1
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
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
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...
0
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
0
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 ...
0
muto222
php
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

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.