Programmers often use Visual Studio to write native DLLs in C++. Since native code cannot be used directly in the .NET Editor, there is a need to call these native DLLs from managed C# scripts.
Here is a tutorial created by Microsoft, which “shows you what you need to do to be able to call unmanaged DLL functions from C#”.