Open Humphryyy opened 3 years ago
I have this error too, but no idea how it would happend
const ffi = require('ffi-napi');
const path = require('path');
const libPath = path.join(process.cwd(), 'engine/unitsync.dll');
console.log(libPath);
var libunitsync = ffi.Library(libPath, {
'Init': [
'int',
['bool', 'int']
],
'GetMapCount': [
'int',
[]
]
});
isOpen = libunitsync.Init(0, 0);
console.log(isOpen);
mapCount = libunitsync.GetMapCount();
console.log(mapCount);
and the unitsync.dll is in follow: http://files.ultirts.net/fileXchanger/unitsync.dll
Has the problem been solved?
I've tried with a few other examples and I get the same error on them all.
I am trying to call a Go .so file and I am getting this error.