安装依赖

npm install --global --production windows-build-tools(在管理员权限打开的命令行中执行)
npm install -g node-gyp //依赖python2.7,包含在windows-build-tools中

安装 node-ffi

npm install ffi

安装ref

npm install ref
'use strict';
const path = require('path');
let ffi = require('ffi');
let mydll = path.join(__dirname, '../dll/helloworld.dll');
let dll= ffi.Library(mydll, {
'helloworld': ['int', ['int']]
}); console.log(dll.helloworld(1));//关闭 RLM 通信端口

最新文章

  1. poj 2503(字符串)
  2. C# API项目代码正确 ,页面出不来的问题
  3. linux下wps,系统缺失字体:wingdings、wingdings 2、wingdings3
  4. item上下自动循环滚动显示
  5. Codeforces Round #370 (Div. 2)C. Memory and De-Evolution 贪心
  6. PowerDesigner更改数据库类型
  7. MySQL监控系统MySQL MTOP的搭建
  8. sh.status()
  9. lucene.net 3.0.3、结合盘古分词进行搜索的小例子(转)
  10. foreach的用法(转)
  11. C编程的指针涛 ---第十笔记
  12. 菜鸟Scrum敏捷实践系列(三)用户故事的组织---功能架构的规划
  13. JUnit 3.8.1 源码学习
  14. Java IO编程全解(四)——NIO编程
  15. A1120. Friend Numbers
  16. stl string的erase方法
  17. [UE4]Text Box
  18. asp.net core使用jexus部署在linux无法正确 获取远程ip的解决办法
  19. windows系统相关命令及问题排查实践
  20. ZooKeeper与Eureka对比

热门文章

  1. 笔记-读官方Git教程(1)~认识Git
  2. c++和cuda混合编程 实现传统神经网络
  3. 一个简单的setTimeout的问题
  4. 根据数据文件自定义边界条件timeVaryingUniformFixedValue【转载】
  5. GO语言html模板
  6. React.createElement 与 JSX
  7. input type color
  8. NTC3950-10K温度传感器
  9. java查询数据库数据时报错antlr/ANTLRException
  10. Linux 限制IP——/etc/hosts.allow和/etc/hosts.deny文件【转】