If you want the program to be native and not controlled, you will need to port it to C ++ instead of using C #.
As the saying goes, you can compile it in C # to a library and use it with C ++ using C ++ / CLI. It just requires that you compile files that use the C # library with the / clr flag. This provides C ++ access to the .NET platform and allows you to use libraries created in C # directly from C ++.
Alternatively, you can use .NET COM interaction to show a C # class (classes) as COM objects, and then use them from your own C ++.
source
share