To call managed code from unmanaged code on Windows, you pretty much need to go through COM.
In your case, this means that you create your C # library as COM Visible and register it for COM interaction.
Then you need to call your COM object from C ++ code in the usual way.
There is a good answer here that goes through the steps necessary to achieve this.
source
share