使用 node.js 访问用 c++ 编写的 SDK

2022-01-10 00:00:00 dll node.js electron c++

我有一个可以与我的扫描仪设备通信的 SDK,它是用 C++ 语言编写的.我需要开发一个可以访问扫描仪设备的电子应用程序.我知道有许多可用于扫描仪的库,但我想使用这个 SDK,因为它可以让我访问设备的全部功能,而且它是由设备制造商提供的.那么,有没有办法实现这一点.请给我建议.

I have a SDK that will communicate with my Scanner device that is written in C++ language. I need to develop an Electron App that can access the Scanner device. I know there are many libraries available for scanner but I want to use this SDK since it will allow me to access full feature of the device and moreover it is provided by the device manufacturer. So, is there any way to implement this. Please suggest me any idea.

推荐答案

如果还有 C 风格的界面,你可以使用 node-ffi https://github.com/node-ffi/node-ffi

if there's also a C-style interface you could use node-ffi https://github.com/node-ffi/node-ffi

相关文章