CallingCppInCSharp A simple solution to calling C++ code from within C# code, using dllexport on the C++ side, and DllImport on the C# side. If you implement this into another project Set the C++ project's Configuration Type (in general) to Dynamic Library.