v2dev
V2EX  ›  Electron

请问 electron 可以调用系统的 dll 吗?

  •  
  •   v2dev · Aug 30, 2019 via iPhone · 4905 views
    This topic created in 2459 days ago, the information mentioned may be changed or developed.

    看了几个例子都是自己写的 dll 放到 electron 里面引用,试了下直接使用 node-ffi 去 require 系统的 dll 老是报错,难道 electron 不支持直接调用系统的 dll 吗?

    2 replies    2019-08-30 12:57:43 +08:00
    codehz
        1
    codehz  
       Aug 30, 2019
    需要重新 node-gyp 安装 node-ffi(具体参考 electron 的官方文档中原生模块的描述
    chairuosen
        2
    chairuosen  
       Aug 30, 2019
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   3343 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 46ms · UTC 00:40 · PVG 08:40 · LAX 17:40 · JFK 20:40
    ♥ Do have faith in what you're doing.