You should really look into C++/CLI. It makes tasks like this nearly trivial.
Otherwise, you’ll have to generate COM wrappers around the C# code and have your C++ app call the COM wrappers.
More Related Contents:
- How to create an object during runtime in .net
- Can’t specify the ‘async’ modifier on the ‘Main’ method of a console app
- What’s the best way of implementing a thread-safe Dictionary?
- Why should I prefer single ‘await Task.WhenAll’ over multiple awaits?
- Does C# optimize the concatenation of string literals?
- How to get client date and time in ASP.NET?
- How does MVC 4 List Model Binding work?
- Is there a way to indefinitely pause a thread?
- Get size of file on disk
- Json.NET serialize object with root name
- C# “internal” access modifier when doing unit testing
- I need a event to detect Internet connect/disconnect
- Async/Await vs Threads
- Fastest way to add new node to end of an xml?
- How to Get XML Node from XDocument
- How to write a comment to an XML file when using the XmlSerializer?
- How to Draw a Rounded Rectangle with WinForms (.NET)?
- No Source available
- GC.Collect() and Finalize
- GetHashCode Guidelines in C#
- Possible pitfalls of using this (extension method based) shorthand
- Deserialize json object with dynamic items in C#
- What is wrong with ToLowerInvariant()?
- How can I pass a parameter in Action?
- ASP.NET Core 1.1 runs fine locally but when publishing to Azure says “An error occurred while starting the application.”
- How to prevent a .NET application from loading/referencing an assembly from the GAC?
- Monitor child processes of a process
- Does Func.BeginInvoke use the ThreadPool?
- List the IP Address of all computers connected to a single LAN
- Writing a Header using CsvHelper? C#