Calling C# from VC++

  • Thread starter Thread starter Dave
  • Start date Start date
Add this to your cpp or header files(s)

#using <yourCsharpAssemblyPFilePath>;
using namespace someNamespace; //for convenience
....


Willy.
 
This all assumes that you are working with Managed C++ and not traditional
C++ so you will also need to compile with /clr.

--
-----
Sam Gentile
Microsoft MVP - C#/.NET
..NET Blog http://samgentile.com/blog/

Please do NOT contact me directly but respond to
the newsgroup instead.
 
Back
Top