CNode

引用eletron-edge-js来调用DLL文件时报错

问答
Zzzg308771898发布于6 年前最后回复6 年前0 回复4471 浏览0 收藏

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

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

查看回复

回复 (0)

暂无回复,成为第一个参与讨论的人。
参与回复
登录后即可参与回复。登录