TransferDllResolving.cs 420 B

12345678910111213141516
  1. using System;
  2. using System.Collections.Generic;
  3. using System.Linq;
  4. using System.Runtime.InteropServices;
  5. using System.Text;
  6. using System.Threading.Tasks;
  7. namespace MqttWpfApp
  8. {
  9. internal class TransferDllResolving
  10. {
  11. //方式1
  12. [DllImport("MqttDll1.dll", EntryPoint = "sumTest2")]
  13. public static extern int sumTest2(IntPtr ptrArr, int arrLenght, int resolveType,ref string data);
  14. }
  15. }