Accessing an SDK that is written in c++ using node.js(使用 node.js 访问用 c++ 编写的 SDK)
问题描述
我有一个可以与我的扫描仪设备通信的 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
这篇关于使用 node.js 访问用 c++ 编写的 SDK的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持编程学习网!
本文标题为:使用 node.js 访问用 c++ 编写的 SDK


- STL 中有 dereference_iterator 吗? 2022-01-01
- Stroustrup 的 Simple_window.h 2022-01-01
- 从python回调到c++的选项 2022-11-16
- 与 int by int 相比,为什么执行 float by float 矩阵乘法更快? 2021-01-01
- 一起使用 MPI 和 OpenCV 时出现分段错误 2022-01-01
- 静态初始化顺序失败 2022-01-01
- 如何对自定义类的向量使用std::find()? 2022-11-07
- 使用/clr 时出现 LNK2022 错误 2022-01-01
- C++ 协变模板 2021-01-01
- 近似搜索的工作原理 2021-01-01