Hi Mike,
Welcome to MSDN Newsgroup!
As far as I known, there is no tool, which could convert C++/C code to C#
automatically. If we want to use legacy dll in .Net program, we could use
P/Invoke or Interoper mechanism to achieve the goal.
1. If the dll is a legacy dll(not belongs to COM type), we could use
P/Invoke to use it in .Net program. You could refer to the following
articles,
Title: Calling Win32 DLLs in C# with P/Invoke
URL:
http://msdn.microsoft.com/msdnmag/issues/03/07/NET/
Title: Using Platform Invoke
URL:
http://www.codeproject.com/dotnet/PInvoke.asp
2. If the dll belongs to COM type, we recommend you use Interoperability
mechanism. I browse some articles from internet and hope it's helpful for
you.
Title: .NET - COM Interoperability
URL:
http://www.codeproject.com/dotnet/CO...ET_INTEROP.asp
Title: Understanding Classic COM Interoperability With .NET Applications
URL:
http://www.codeproject.com/dotnet/co...QueryInterface
I hope the above information is useful for you. If there is any question,
please feel free to join the community and we are here to support you at
your convenience. Thanks again and have a nice day.
Best Regards,
Terry Fei [MSFT]
Microsoft Community Support
Get Secure!
www.microsoft.com/security
(This posting is provided "AS IS", with no warranties, and confers no
rights.)