Open Hirsi-He opened 1 year ago
你好,我参考其他C#封装 [DllImport("miniblink_5775_x32.dll", EntryPoint = "mbInit", CallingConvention = CallingConvention.StdCall)] internal static extern void mbInit(ref mbSettings setting); 下边是setting结构体 [StructLayout(LayoutKind.Sequential)] public struct mbSettings { public mbProxy proxy; public mbSettingMask mask; [MarshalAs(UnmanagedType.FunctionPtr)] internal mbOnBlinkThreadInitCallback blinkThreadInitCallback; public IntPtr blinkThreadInitparam; } 来初始化,断点过了mbInit()方法程序直接就关闭了 大佬有没有miniblink_5775_x32.dll C#封装的例子
你好,我参考其他C#封装 [DllImport("miniblink_5775_x32.dll", EntryPoint = "mbInit", CallingConvention = CallingConvention.StdCall)] internal static extern void mbInit(ref mbSettings setting); 下边是setting结构体 [StructLayout(LayoutKind.Sequential)] public struct mbSettings { public mbProxy proxy; public mbSettingMask mask; [MarshalAs(UnmanagedType.FunctionPtr)] internal mbOnBlinkThreadInitCallback blinkThreadInitCallback; public IntPtr blinkThreadInitparam; } 来初始化,断点过了mbInit()方法程序直接就关闭了 大佬有没有miniblink_5775_x32.dll C#封装的例子