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


基础教程推荐
- C++结构和函数声明。为什么它不能编译? 2022-11-07
- 常量变量在标题中不起作用 2021-01-01
- 如何将 std::pair 的排序 std::list 转换为 std::map 2022-01-01
- 在 C++ 中计算滚动/移动平均值 2021-01-01
- 静态库、静态链接动态库和动态链接动态库的 .lib 文件里面是什么? 2021-01-01
- 这个宏可以转换成函数吗? 2022-01-01
- 如何通过C程序打开命令提示符Cmd 2022-12-09
- 如何检查GTK+3.0中的小部件类型? 2022-11-30
- 我有静态或动态 boost 库吗? 2021-01-01
- 如何在 C++ 中初始化静态常量成员? 2022-01-01