Managed Extensions support in Visual C++ 2005

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?
 
C

Carl Daniel [VC++ MVP]

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:blush:ldSyntax will use the old syntax. AFIAK, all your 2003
MC++ should continue to compile and run with VC++ 2005.

-cd
 
D

Don Kim

Yes. With VC++ 2005, compiling with /clr will use the new syntax, and
compiling with /clr:blush:ldSyntax 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
 
C

Carl Daniel [VC++ MVP]

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
 
G

Gary Chang

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.
--------------------
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top