引用eletron-edge-js来调用DLL文件时报错
发布于 1 天前 作者 zzg308771898 771 次浏览 来自 问答

const edge = require(‘electron-edge-js’);

router.get(’/tests’, async ctx => { const helloWorld = edge.func({ assemblyFile: “D:/free/HYLoadLib.dll”, typeName: “HYLoadLib.LoadLib”, methodName: “GetCryptoCode” }); const input = [‘5c61b368187e22ad4aa62a10ebca520a’, ‘7179e9a126389f9db8b4922aada63697’]; helloWorld(input, function(err, result){ if (err) throw err; console.log(result); }); });

TypeError: Cannot read property ‘initializeClrFunc’ of undefined

有没有大佬用过 帮忙指点一下

回到顶部