小编Nik*_*hil的帖子

为什么 npm install ffi 返回错误。使用节点版本 12

我是 nodejs 的新手。我正在尝试从 node-js 的 dll 中调用 c++ API。到目前为止我发现可以使用ffi来做到这一点。我按照安装说明安装了必要的构建工具。但是当我运行时,npm install ffi我收到以下错误。

难道我做错了什么?

**d:\codelathe\electronpoc\practice\dll\electroncallingdll\node_modules\ref\src\binding.cc(222): error C2661: 'v8::Value:
:BooleanValue': no overloaded function takes 0 arguments**
 [D:\CodeLathe\ElectronPOC\Practice\dll\ElectroncallingDll\node
_modules\ref\build\binding.vcxproj]
d:\codelathe\electronpoc\practice\dll\electroncallingdll\node_modules\ref\src\binding.cc(253): error C2660: 'v8::Value:
:Uint32Value': function does not take 0 arguments [D:\CodeLathe\ElectronPOC\Practice\dll\ElectroncallingDll\node_module
s\ref\build\binding.vcxproj]
  c:\users\nikhe\.node-gyp\12.0.0\include\node\v8.h(2567): note: see declaration of 'v8::Value::Uint32Value' (compiling
   source file ..\src\binding.cc)
d:\codelathe\electronpoc\practice\dll\electroncallingdll\node_modules\ref\src\binding.cc(360): error C2664: 'v8::String
::Utf8Value::Utf8Value(const v8::String::Utf8Value &)': cannot convert argument 1 from 'v8::Local<v8::Value>' to 'const
 v8::String::Utf8Value &' [D:\CodeLathe\ElectronPOC\Practice\dll\ElectroncallingDll\node_modules\ref\build\binding.vcxp
roj]
  d:\codelathe\electronpoc\practice\dll\electroncallingdll\node_modules\ref\src\binding.cc(360): note: Reason: cannot c
  onvert from 'v8::Local<v8::Value>' to 'const v8::String::Utf8Value' …
Run Code Online (Sandbox Code Playgroud)

c++ node.js node-ffi

6
推荐指数
1
解决办法
5297
查看次数

电子应用程序未显示在通知设置中

我们已经编写了一个电子应用程序。它显示通知(Win10)。一旦应用程序通过大量通知发送垃圾邮件,我就将它们从通知磁贴中关闭。

如图所示

我想让他们回来。所以我去了通知设置,但在列表中找不到我的应用程序。

PS:我们正在使用电子通知模块,我们也在调用 app.setAppUserModelId("OurAppName")

notifications windows-10 electron

5
推荐指数
1
解决办法
633
查看次数

标签 统计

c++ ×1

electron ×1

node-ffi ×1

node.js ×1

notifications ×1

windows-10 ×1