470,821 Members | 1,972 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 470,821 developers. It's quick & easy.

Visual Studio 2005 compatiblity with VC6

I will be in charge of maintaining a VC6 written application, and I
have Visual Studio 2005.
They have sent a few 'compilable' programs to me and when I put them in
VS2005 there's all kinds of errors. Some include,but not limited to:
right side of = must be l-value
strcpy is deprecated, use strcpy_s (and all the rest of them)

My question is: Can I (and how to) set up the Visual Studio 2005 to
generate/compile/link .c and .cpp files like it would if it were VC6.

Thanks,
LuckyCarl

May 11 '06 #1
3 3160

Right ..


--
espen
May 12 '06 #2
ca**@davissd.com wrote:
I will be in charge of maintaining a VC6 written application, and I
have Visual Studio 2005.
They have sent a few 'compilable' programs to me and when I put them in
VS2005 there's all kinds of errors. Some include,but not limited to:
right side of = must be l-value
strcpy is deprecated, use strcpy_s (and all the rest of them)

My question is: Can I (and how to) set up the Visual Studio 2005 to
generate/compile/link .c and .cpp files like it would if it were VC6.


I am using VS 2003, and I just import the .dsw files directly into a
"solution", and it puts the compiler into some old compatibility mode
(which is very strange because the version gets detected as if the
compiler were the older version, and it reproduces all the old compiler
bugs) and everything seems to work fine.

Those messages look like they *must* be warnings. I.e., you should be
able to dial down the warning level do make it so that they still
compiler (in VS 2003, its project->properties->C/C++->General->Warning
Level). The business about strcpy() almost certainly must be
ignorable. If not, then I would say that Microsoft has just decided
not to support the old code any more (which seems unlikely, unless they
have gone completely insane).

--
Paul Hsieh
http://www.pobox.com/~qed/
http://bstring.sf.net/

May 12 '06 #3
we******@gmail.com wrote:
ca**@davissd.com wrote:
I will be in charge of maintaining a VC6 written application, and I
have Visual Studio 2005.
They have sent a few 'compilable' programs to me and when I put them in
VS2005 there's all kinds of errors. Some include,but not limited to:
right side of = must be l-value
strcpy is deprecated, use strcpy_s (and all the rest of them)

My question is: Can I (and how to) set up the Visual Studio 2005 to
generate/compile/link .c and .cpp files like it would if it were VC6.


I am using VS 2003, and I just import the .dsw files directly into a


<snip stuff about compiler>

This should have been redirected to one of the windows programming
groups where you will find lots of people who know about Visual Studio,
including people who know Visual Studio 2005.

<OT>
You have to ensure you don't convert anything you will be sending back
in to something your customer can't use, including the workspaces etc.

Also, check the license terms. Some MS licenses also allow you to
install older versions of products, and the best thing would be to use
the same version as your customer.
</OT>
--
Flash Gordon, living in interesting times.
Web site - http://home.flash-gordon.me.uk/
comp.lang.c posting guidelines and intro:
http://clc-wiki.net/wiki/Intro_to_clc
May 12 '06 #4

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

65 posts views Thread by xuanbai98 | last post: by
3 posts views Thread by Howard | last post: by
2 posts views Thread by Progman | last post: by
8 posts views Thread by WT | last post: by
reply views Thread by mihailmihai484 | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.