I have a windows c++ DLL. It provides some functions like add(1,2). But I don't have the source code for this DLL, is it possible call functions in this DLL through nodejs, I mean, through web side and http. If it possible, what should I do?
我有一个windows c++ DLL。它提供了一些函数,如add(1,2)。但是我没有这个DLL的源代码,在这个DLL中有可能调用函数通过node . js,我是说,通过web端和http。如果可能的话,我应该怎么做?
1 个解决方案
#1
3
Yes, there are some prominent solutions out there for using Nodejs with native/C++.
是的,有一些突出的解决方案可以使用本地/ c++的Nodejs。
Checkout this node-gyp tutorial: http://www.benfarrell.com/2013/01/03/c-and-node-js-an-unholy-combination-but-oh-so-right/
这个node-gyp指南:http://www.benfarrell.com/2013/01/03/cand -node-js-an-unholy- combinator -but- so-right/。
Or Node-ffi: https://github.com/node-ffi/node-ffi
或Node-ffi:https://github.com/node-ffi/node-ffi
#1
3
Yes, there are some prominent solutions out there for using Nodejs with native/C++.
是的,有一些突出的解决方案可以使用本地/ c++的Nodejs。
Checkout this node-gyp tutorial: http://www.benfarrell.com/2013/01/03/c-and-node-js-an-unholy-combination-but-oh-so-right/
这个node-gyp指南:http://www.benfarrell.com/2013/01/03/cand -node-js-an-unholy- combinator -but- so-right/。
Or Node-ffi: https://github.com/node-ffi/node-ffi
或Node-ffi:https://github.com/node-ffi/node-ffi