PDA

Click to See Complete Forum and Search --> : [RESOLVED] wrapping it up (c++ activex to .net usercontrol)


madsun
Jan 27th, 2007, 01:31 PM
Hello
No idea where to start on this quest, so im open for suggestions.
I have a huge active x written in c++. I know even less of c++ than of c#, so here's the deal; i wanna convert it to a .net usercontrol

1; can it be converted directly in any way?
2; how much code must be changed to convert it (if option 1 fails)

Its a rather complex thing...

Any general ideas out on where to begin?

jmcilhinney
Jan 27th, 2007, 05:39 PM
1. No
2. All of it

madsun
Jan 28th, 2007, 05:25 AM
1. Ouch
2. Doubleouch

Thx for quick reply and saving me from hundreds of hours with incorrect thinking

jmcilhinney
Jan 28th, 2007, 03:22 PM
There are tools to convert between various languages but converting unmanaged C++ to any .NET langauge, even managed C++, would be a huge challenge. Basically you just need to forget the code itself and look at the functionality it provides, then implement that same functionality in the most efficient way you can using your .NET lanaguage of choice. If that lanaguage is C++.NET then there may be a fair bit of similarity in some places. If that language is C# then there may still be some similarity, but less.