我尝试使用 fastcall,这是我第一次使用 fastcall 和外部函数接口,我尝试加载 datatable.dll 它抛出错误,尝试传递所有可能的库路径(绝对和相对)。使用 nodejs、fastcall、javascipt
const fastcall = require('fastcall');
const Library = fastcall.Library;
const ref = fastcall.ref;
const lib = new Library('datatable.dll')
lib.isSymbolExists('fread')
我收到的错误是
TypeError: Cannot load library or library not found: datatable.dll
at Library.initialize (c:\Users\nband1\fastcall\fastcall\lib\Library.js:82:37)
at Library.isSymbolExists (c:\Users\nband1\fastcall\fastcall\lib\Library.js:111:14)