久久久久久久av_日韩在线中文_看一级毛片视频_日本精品二区_成人深夜福利视频_武道仙尊动漫在线观看

如何在 Electron App 中調用本地 .dll 文件

How to call local .dll files in Electron App(如何在 Electron App 中調用本地 .dll 文件)
本文介紹了如何在 Electron App 中調用本地 .dll 文件的處理方法,對大家解決問題具有一定的參考價值,需要的朋友們下面隨著小編來一起學習吧!

問題描述

我遇到了如何將示例 .dll 文件調用到我的 Electron 應用程序中的問題.我的文件夾中有示例 .dll 文件,問題是如何訪問我的 sample.dll 文件以及如何調用我的 sample.dll 函數并獲得結果.任何教程或步驟請遵循示例代碼開始

i have an issue how to call sample .dll files into my Electron App. I have sample .dll files in my folder, the thing is how to access my sample.dll file and how to call my sample.dll function and gets results. Any tutorials or steps to follow please sample code to start

推薦答案

在 Electron 中調用 .dll 與在普通 NodeJS 中調用一個沒有什么不同,這意味著你有兩個選擇,node-ffi 或 本機節點插件,它與您的 .dll 鏈接并公開 JavaScript API.如果你決定創建一個原生 Node 插件,你需要 構建它目標電子.

Calling into a .dll in Electron is no different to calling into one in plain NodeJS, which means you have two options, node-ffi or a native Node addon that links with your .dll and exposes a JavaScript API. If you decide to create a native Node addon you will need to build it to target Electron.

以下是一些涵蓋這些主題的鏈接:

Here are some links that cover these topics:

  • node-ffi vs. 訪問節點擴展現有的 C++ 功能
  • 從Node.js調用C++庫(Node插件/node-ffi)
  • https://github.com/node-ffi/node-ffi/wiki/Node-FFI-教程
  • https://blog.scottfrees.com/calling-native-c-dlls-from-a-node-js-web-app
  • http://blog.scottfrees.com/building-an-asynchronous-c-addon-for-node-js-using-nan

這篇關于如何在 Electron App 中調用本地 .dll 文件的文章就介紹到這了,希望我們推薦的答案對大家有所幫助,也希望大家多多支持html5模板網!

【網站聲明】本站部分內容來源于互聯網,旨在幫助大家更快的解決問題,如果有圖片或者內容侵犯了您的權益,請聯系我們刪除處理,感謝您的支持!

相關文檔推薦

How to fix BrowserWindow is not a constructor error when creating child window in Electron renderer process(在 Electron 渲染器進程中創建子窗口時如何修復 BrowserWindow 不是構造函數錯誤) - IT屋-程序員軟件開發技術
mainWindow.loadURL(quot;https://localhost:3000/quot;) show white screen on Electron app(mainWindow.loadURL(https://localhost:3000/) 在 Electron 應用程序上顯示白屏)
Electron webContents executeJavaScript : Cannot execute script on second on loadURL(Electron webContents executeJavaScript:無法在第二個 loadURL 上執行腳本)
how to use electron browser window inside components in angular-cli?(如何在angular-cli的組件內使用電子瀏覽器窗口?)
ElectronJS - sharing redux store between windows?(ElectronJS - 在 Windows 之間共享 redux 存儲?)
How to access camera/webcamera inside electron app?(如何在電子應用程序中訪問相機/網絡攝像頭?)
主站蜘蛛池模板: 中文字幕国产第一页 | 九九免费观看视频 | 亚洲精品一区二区三区免 | 色综久久 | 宅男噜噜噜66一区二区 | 国产精品视频导航 | 久婷婷 | 日韩无 | 亚洲国产精品suv | 国产成人一区二区三区电影 | 喷潮网站 | 欧美日韩视频在线第一区 | 国产精品永久久久久 | 成人日韩 | www国产亚洲精品久久网站 | 国产精品久久久久久久久久免费看 | 91高清免费观看 | 亚洲精品二区 | 午夜免费在线 | 国产视频导航 | 国产亚洲精品久久久优势 | 91视频大全| 一区二区三区免费 | 亚洲精品一区二区三区四区高清 | 91九色网站| 日韩成人免费在线视频 | 免费播放一级片 | 91精品www | 国产日韩欧美在线播放 | 伊人av在线播放 | 亚洲3级 | 久久久久国产精品人 | 色吧综合 | 日韩三区 | 正在播放国产精品 | 91在线资源| 欧美日韩在线免费 | 亚洲成人精品久久久 | 玖玖精品| www.亚洲 | 精品欧美一区二区三区久久久 |