Good day! Please tell me how to correctly transfer variables from a project to c # to dll written in c ++ using links. That is, I have variables in sharpe that I pass to the dll, then do various operations with different functions with them, and accordingly return their new values ​​back to sharpe.

  • one
    For the future: link - isnullxbh

1 answer 1

In theory, something like this:

[DllImport("ImportDLL.dll")] public static extern void MyFunction(ref int myInteger);