Passing Strings Between Managed and Unmanaged Code
https://www.codeproject.com/Articles/1189085/Passing-strings-between-managed-and-unmanaged-code
Jul 07, 2017 · namespace DemoApp.Model { static class ImportLibrary { const String DLL_LOCATION = " DemoLibrary.dll"; [DllImport(DLL_LOCATION, ExactSpelling = true, CharSet = CharSet.Ansi, CallingConvention = CallingConvention.StdCall)] public static extern void SetVersion(string version); } }. Now the .NET application will try and invoke a function …
DA: 44 PA: 69 MOZ Rank: 34