471,605 Members | 1,319 Online
Bytes | Software Development & Data Engineering Community
Post +

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 471,605 software developers and data experts.

managed code execution from unmanaged code; AppDomain

I've been enlisted to update some legacy code (VC++ 6.0/MFC) and prefer
to do in C#. Has anyone had some experience with this? advice?

Jan 27 '06 #1
2 1973
There are a couple of approaches, you can try IJW (It Just Works) with the
/CLR swich in VC++ .NET, or you can write a managed C# Wrapper over the
native C++.
A good place to start is "Essential Guide to Managed Extensions" (aPress) by
Challa and Laksberg.
There are some online tutorial articles as well, both from MSDN and 3rd
parties, that should be helpful.
Peter
--
Co-founder, Eggheadcafe.com developer portal:
http://www.eggheadcafe.com
UnBlog:
http://petesbloggerama.blogspot.com


"do********@gmail.com" wrote:
I've been enlisted to update some legacy code (VC++ 6.0/MFC) and prefer
to do in C#. Has anyone had some experience with this? advice?

Jan 27 '06 #2
It depends on the kind of legacy code. If you're doing complete port then
you will use Winforms to replace
MFC and reimplement non-GUI modules.

Another way is to use P/Invoke for non-GUI parts of the application, this
will save time if these components are complex and hard to reimplement in
managed way.

If your legacy app is using 3-rd party modules dlls, then you'll almost for
sure use p/invoke.

--
Vadym Stetsyak aka Vadmyst
http://vadmyst.blogspot.com

<do********@gmail.com> wrote in message
news:11*********************@f14g2000cwb.googlegro ups.com...
I've been enlisted to update some legacy code (VC++ 6.0/MFC) and prefer
to do in C#. Has anyone had some experience with this? advice?

Jan 27 '06 #3

This discussion thread is closed

Replies have been disabled for this discussion.

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.