node.js - nodejs如何调用dll?
伊谢尔伦
伊谢尔伦 2017-04-17 11:17:17
0
3
619

nodejs如何调用dll?网上找不到啊

伊谢尔伦
伊谢尔伦

小伙看你根骨奇佳,潜力无限,来学PHP伐。

reply all(3)
迷茫

This is easy to find. If you are familiar with FFI (Foreign Function Interface), you can know what keywords you can search for.
The ffi library is available in many languages, python lua ruby
For node, search on npm and you will see this
https://www.npmjs.org/package/ffi
There are examples in the description.

洪涛

I haven’t encountered such a demand, but you can find ideas online, just Google it.

Two connections for your reference

Edge.js: .NET and Node.js in-process

Integrating Node.js with a C# DLL

迷茫

There are two main solutions. One is to load the dll by writing a Node Addon. The main method is LoadLibrary of C++, https://nodejs.org/api/addons... The other is to use node-ffi (https://github.com/node-ffi/n... However, this method requires environment dependencies.

Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template