Managed Extensions support in Visual C++ 2005

  • Thread starter Thread starter Dr Evil
  • Start date Start date
D

Dr Evil

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?
 
Dr said:
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
 
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
 
Don said:
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
 
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.
--------------------
 
Back
Top