betterandhappier / Publications
Forum
memory leak. change string value through dll by reference
c#: [DllExport] static void test_change_string_value_by_reference([In, Out, MarshalAs(UnmanagedType.LPWStr)] StringBuilder my_str) { my_str.Clear(); my_str.Append("here is the string from c#.net "); } mql5: #import "dll_test.dll" void