kevinBon 最近的时间轴更新
kevinBon

kevinBon

V2EX 第 174479 号会员,加入于 2016-05-24 16:52:57 +08:00
kevinBon 最近回复了
2021-07-22 14:11:51 +08:00
回复了 liangzimo 创建的主题 Node.js 关于 nodejs(ffi-napi)调用 c++ dll 的 output parameter 问题
你好,请问这个 dll 的函数 里面的 HANDLE 具体是什么类型,ffi-napi 要用什么类型去接收,和传入参数的?
HANDLE 可以用 long 进行接收吗?

let device = ffi.Library(pathUtil.getAppResourcePath('DK-4H1/QSApi'), {
QS_Device_Open: ['long', [ref.types.int16, 'long']]
})

HANDLE __stdcall QS_Device_Open(__int16 Port,long Baud);



var int16_with_100 = ref.alloc(ref.types.int16, 100)

var openResult = device.QS_Device_Open(int16_with_100,1)
2017-02-10 10:08:03 +08:00
回复了 luckypoem 创建的主题 macOS mac 上有什么可以把 socks 代理转换为全局代理的程序吗?
@hahasong 对 就是这个,我在找这东西, Mac 上的命令行启动就可以了
2017-01-22 10:50:55 +08:00
回复了 Delbert 创建的主题 macOS Yosemite 关机卡死……
我的也是,电脑开一天, 跑数据库,跑服务,开几个 IDE ,关机黑屏 白菊花 转了不知道多久没关好,赶时间,我合上装包就走了,回家一看,还没关,风扇呼呼猛转......烫得不行
关于   ·   帮助文档   ·   博客   ·   API   ·   FAQ   ·   我们的愿景   ·   实用小工具   ·   5723 人在线   最高记录 6543   ·     Select Language
创意工作者们的社区
World is powered by solitude
VERSION: 3.9.8.5 · 12ms · UTC 01:59 · PVG 09:59 · LAX 18:59 · JFK 21:59
Developed with CodeLauncher
♥ Do have faith in what you're doing.