470,624 Members | 2,276 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

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

Managed Extensions support in Visual C++ 2005

Does anyone know if C++ w/Managed Extensions code written for VS
2002/2003 will compile in VS 2005? I've read a lot about the changes
to C++ in .net ( the new CLI syntax ), but nothing I've read mentions
backward compatibility. They've removed overloading the C++ pointer,
for instance, so it can no longer reference a managed type. Is there
a compiler switch that enables 2002/2003 compiler behavior?
Nov 17 '05 #1
4 812
Dr Evil wrote:
Does anyone know if C++ w/Managed Extensions code written for VS
2002/2003 will compile in VS 2005? I've read a lot about the changes
to C++ in .net ( the new CLI syntax ), but nothing I've read mentions
backward compatibility. They've removed overloading the C++ pointer,
for instance, so it can no longer reference a managed type. Is there
a compiler switch that enables 2002/2003 compiler behavior?


Yes. With VC++ 2005, compiling with /clr will use the new syntax, and
compiling with /clr:oldSyntax will use the old syntax. AFIAK, all your 2003
MC++ should continue to compile and run with VC++ 2005.

-cd
Nov 17 '05 #2
> Yes. With VC++ 2005, compiling with /clr will use the new syntax, and
compiling with /clr:oldSyntax will use the old syntax. AFIAK, all your
2003
MC++ should continue to compile and run with VC++ 2005.


Wasn't there suppose to be a tool released, that will translate the old
syntax to the new? I think I read about it somewhere.

- Don Kim
Nov 17 '05 #3
Don Kim wrote:
Yes. With VC++ 2005, compiling with /clr will use the new syntax,
and compiling with /clr:oldSyntax will use the old syntax. AFIAK,
all your 2003
MC++ should continue to compile and run with VC++ 2005.


Wasn't there suppose to be a tool released, that will translate the
old syntax to the new? I think I read about it somewhere.


I believe there will be a tool. I don't know if any form of it is included
in beta 1 or not.

-cd
Nov 17 '05 #4
Hi Don,
Wasn't there suppose to be a tool released, that will translate the old syntax to the new? I think I read about it somewhere.


Yes, we are developing such a tool, however we could not be certain of its
ship vehicle; it may ship with Whidbey or it may be posted on the web
separately.
Thanks for your understanding!

Best regards,

Gary Chang
Microsoft Online Partner Support

Get Secure! - www.microsoft.com/security
This posting is provided "AS IS" with no warranties, and confers no rights.
--------------------

Nov 17 '05 #5

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

22 posts views Thread by Alper AKCAYOZ | last post: by
7 posts views Thread by Ekim | last post: by
2 posts views Thread by andy6 via DotNetMonster.com | last post: by
4 posts views Thread by Andy | last post: by
2 posts views Thread by kelvin.koogan | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.