473,471 Members | 4,629 Online
Bytes | Software Development & Data Engineering Community
Create Post

Home Posts Topics Members FAQ

Using VS2005 on a project that earlier used VS2003

Hello!

What is the right way to go when I have a C++ project that earlier used
VS2003.

When I compile now I get a lot of compile error.

//Tony
Jun 28 '07 #1
5 1073
Aek
On Jun 28, 4:45 pm, "TonyJ" <johansson.anders...@telia.comwrote:
Hello!

What is the right way to go when I have a C++ project that earlier used
VS2003.

When I compile now I get a lot of compile error.

//Tony
Are you getting errors or warnings? Or both..
Please send a sample of the errors and warning you get.

You should be able to migrate from 2003 C++ projects to 2005 C++
projects fairly easily, but it depends on how compliant your C++ code
was.
Do you have any managed code in the C++ project?

Are you using many of the older C style functions? (such as ones found
in stdio.h). Using these will often give you warnings. Sometime you
can simply disable these warnings for the time being.

Josh

Jun 28 '07 #2
Hi Tony,

"TonyJ" <jo*****************@telia.comwrote in message
news:ex**************@TK2MSFTNGP06.phx.gbl...
Hello!

What is the right way to go when I have a C++ project that earlier used
VS2003.

When I compile now I get a lot of compile error.
Managed or unmanaged C++?

For managed: learn the new syntax for C++/CLI and change the code.

For unmanaged: what are the errors? Typically you will get a lot of warnings
about unsafe APIs which you should replace with safer versions.

--
SvenC

Jun 28 '07 #3
Hello!

It's manage code.
Is the best or maybe the only way to take each compile error and correct it.
I just wonder if there exist some way to let the vc2005 behave like vs2003
and compile without error.

//Tony
"SvenC" <Sv***@community.nospamskrev i meddelandet
news:uP**************@TK2MSFTNGP04.phx.gbl...
Hi Tony,

"TonyJ" <jo*****************@telia.comwrote in message
news:ex**************@TK2MSFTNGP06.phx.gbl...
Hello!

What is the right way to go when I have a C++ project that earlier used
VS2003.

When I compile now I get a lot of compile error.

Managed or unmanaged C++?

For managed: learn the new syntax for C++/CLI and change the code.

For unmanaged: what are the errors? Typically you will get a lot of
warnings
about unsafe APIs which you should replace with safer versions.

--
SvenC

Jun 28 '07 #4
Hi TonyJ!
It's manage code.
You have three chances:
1. Set your compiler option to "/clr:oldsynatx"
2. Review your code line-by-line
3. Use the "VC++ 2003 Managed Extensions to VC++2005 C++/CLI Conversion
Tool"
http://www.microsoft.com/downloads/d...displaylang=en

I would prefer the option 3 ;)

Greetings
Jochen
Jun 28 '07 #5
On Thu, 28 Jun 2007 18:19:19 +0900, TonyJ <jo*****************@telia.com>
wrote:
Hello!

It's manage code.
Is the best or maybe the only way to take each compile error and correct
it.
I just wonder if there exist some way to let the vc2005 behave like
vs2003
and compile without error.
/clr:oldSyntax might help (although I never tried it as I upgraded from
Managed C++ to CLI/C++).

Boris
[...]
Jun 28 '07 #6

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

Similar topics

4
by: Jody Gelowitz | last post by:
Is this possible? I have compiled an assembly in VS2005 and am trying to add a reference to that assembly from my VS2003 project. The error that I am getting is: A reference to '{path to vs2005...
9
by: Jeff Gaines | last post by:
I have just installed VS 2005 (MSDN version) and I am having problems coping files to the Projects folder while VS2005 is running. The projects folder is on a network share and I have used...
7
by: Frank Rizzo | last post by:
Is it me or is the speed of VS2005 actually slower than VS2003? The startup is pretty bad - even though I changed VS to display an empty environment. When I create a new form and want to change...
17
by: Samuel | last post by:
Hi All, I am in the process of converting a VS 2003 project to VS 2005 project (VB.NET Class Library). It gives the error in TypeOf and DirectCast statements. It was working...
9
by: DrZogg | last post by:
It can't be... say it isn't so... Yes.. there is a fly in the ointment This bug requires 3 projects... yes this is a real world production issue not some tinker toy thing. Start with a C#...
4
by: Peter Sutcliffe | last post by:
In VS2003 I had a class library project that I started via a URL and I had ASP.NET debugging enabled to allow me to debug the web pages code behind in my project. I have moved the app to VS2005...
1
by: MimiMi | last post by:
I have a deployment project that was originally created in VS2003. Since I don't have VS2003, I now open it in VS2005, but then of course VS2005 has to convert it. Everything seems to work fine. I...
3
by: Academia | last post by:
I have a vs2003 project (actually 44 of them) that I want to convert to VS2005 format. To fix a usercontrol file I created the Designer.vb file and moved the Inherited and Class ( change to...
5
by: =?Utf-8?B?SGFpcmxpcERvZzU4?= | last post by:
I have a component that was developed in VS2003 that I need to debug in a VS2005 application. Basic steps are: Build the component for Debug in VS2003. Set the following VS2003 project...
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,...
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
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: 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...
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
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.