I am currently programming in C++ and C#. Using native C++ for the numerical computing part.
Originally I intended to use C++/CLI to make a wrapper to the native C++ classes, but I found it would result in a 2 to 4 times slowdown.
So I decided to compile my native C++ to a DLL and call in .NET/C# via P/Invoke. I will do data preprocessing in C# and number crunching in the native DLL.
The problem is that when I deliver my work for others to use, I'd like it to be a single DLL.
Is this possible? BTW, I have all source code to the native C++.