Are there any tools for converting Managed C++ to C++/CLI? [closed]
Asked Answered
D

2

6

We have an old project written using Managed C++ syntax. I would like to propose to the team a reasonably pain-free (I don't mind some level of human interaction, I think I'm realistic in my expectations that we'll still have to do some work by hand) method of updating the existing code to C++/CLI syntax so that we can also add XML documentation (the project is a library into other projects and having documentation would be immensely useful).

So, are there any good tools out there to help with this? Or is it just a case of switching to the new C++/CLI syntax compiler and fixing errors as we go?

Deppy answered 30/9, 2008 at 4:40 Comment(0)
H
2

Microsoft has a tool that will help a little. Visual c++ blog post about it. Here are a couple other resources I found useful when I made our switch C++/CLI Migration Primer Managed Extensions for C++ Syntax Upgrade Checklist

The Microsoft tool is just a start. there were many files that it could not convert.

Himes answered 30/9, 2008 at 5:44 Comment(0)
D
1

Unfortunately, I found the migration tool from Microsoft to be two steps away from useless. However, there is the C++/CLI disassembler for Reflector, which has proved a lot more useful.

This isn't perfect as comments get lost, but I've found that re-adding the comments is much easier than trying to hand-convert the majority of the code.

Deppy answered 22/11, 2008 at 18:0 Comment(0)

© 2022 - 2024 — McMap. All rights reserved.