I assume that the existing C++ is unmanaged. Basically, C# cannot directly
call or consume native C++. However, Managed C++ can. It actually lets you
have unmanaged and managed in the same file! So what you can do is use MC++
to write a managed wrapper around your native C++. Then you can call it and
use it from C# (and any other CLR language). I did some articles on this a
while back for O'Reilly. See below. Its also in my book.
http://www.ondotnet.com/pub/a/dotnet...03/mcppp2.html
--
Sam Gentile [C#/.NET MVP]
..NET Blog
http://samgentile.com/blog/
MSDN Column:
http://msdn.microsoft.com/library/de...tml/bridge.asp
Please reply only to the newsgroup so that others can benefit.
This posting is provided "AS IS" with no warranties, and confers no rights.
"David H." <an*******@discussions.microsoft.com> wrote in message
news:A4**********************************@microsof t.com...
I have some background with C and C++ and am considering migration to
Visual C#.NET for academic work. To get started, is it possible to compile
working C++ code in the Visual C#.NET environment? If so, how is it done?
Thanks in advance for any help.