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
基础教程推荐
- 为什么 typeid.name() 使用 GCC 返回奇怪的字符以及如 2022-09-16
- 非静态 const 成员,不能使用默认赋值运算符 2022-10-09
- 我应该对 C++ 中的成员变量和函数参数使用相同的名称吗? 2021-01-01
- 为什么 RegOpenKeyEx() 在 Vista 64 位上返回错误代码 2021-01-01
- GDB 显示调用堆栈上函数地址的当前编译二进制文 2022-09-05
- 为什么派生模板类不能访问基模板类的标识符? 2021-01-01
- 如果我为无符号变量分配负值会发生什么? 2022-01-01
- 通过引用传递 C++ 迭代器有什么问题? 2022-01-01
- 初始化列表*参数*评估顺序 2021-01-01
- CString 到 char* 2021-01-01
