GZhiDao1010 / Electron-ffi-dll

一个在Electron中通过node-ffi模块调用dll的demo / A demo about DLL is called through node-ffi in the Electron

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Electron-ffi-dll

项目说明

这是一个electron中ffi模块直接调用dll的demo,将其下载之后就能够直接进项目开发,无须配置其他环境, 极大减轻配置环境过程中的痛苦,这个用作test的dll内部函数是int double(int n1),即输入一个数,将其乘以2后,返回这个结果。 需要注意的是这个是32位的dll,故electron也是32位的。

目录说明

  1. 静态资源在public文件夹
  2. dll文件在public/dll/dlltest.dll文件
  3. 调用dll的js文件在src/modules/index文件

运行

  • npm run start

About

一个在Electron中通过node-ffi模块调用dll的demo / A demo about DLL is called through node-ffi in the Electron

License:Creative Commons Zero v1.0 Universal


Languages

Language:Python 65.6%Language:JavaScript 27.4%Language:HTML 7.1%