weolar / miniblink49

a lighter, faster browser kernel of blink to integrate HTML UI in your app. 一个小巧、轻量的浏览器内核,用来取代wke和libcef
Apache License 2.0
7.22k stars 1.09k forks source link

miniblink_5775_x32版本使用vip方式初始化后程序直接关闭了 #575

Closed Hirsi-He closed 1 year ago

Hirsi-He commented 1 year ago

请问下miniblink_5775_x32.dll版本是不是也是需要注册vip后才能使用呢

weolar commented 1 year ago

miniblink_5775_x32不需要。不过最近我在升级内核到108,所以miniblink_5775_x32好久没维护了。

Hirsi-He commented 1 year ago

miniblink_5775_x32只用miniblink_5775_x32.dll就可以是吧,不需要mb.dll吧。只是接口名称都和vip版本一样是吧

weolar commented 1 year ago

是的

Hirsi-He commented 1 year ago

好的,谢谢,我再试试

Hirsi-He commented 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#封装的例子