admin管理员组文章数量:1410688
I have a 3rd party program that allows scripting via JavaScript (JS) using the Duktape JS engine. I am attempting to load the Ultralight DLL module through Duktape in order to call certain functions the DLL brings that Duktape doesn't have.
const ultralight = require("Ultralight.dll");
ultralight.init();
// Initialize Ultralight UI
const app = new ultralight.App();
const window = app.createWindow(800, 600, {
title: "Tracker",
transparent: true,
resizable: true,
alwaysOnTop: true
});
const view = window.createView(800, 600);
view.loadURL("file:///usr/interface.html"); // Update with the actual UI file
window.setRootView(view);
app.run();
Everything looks like it would be fine but this is the error I keep getting:
Error: failed to load native module ("Ultralight.dll")
at [anon] (UserInterface\Debugger\ScriptAPI\ScriptAPI.cpp:648) internal
at [anon] () native strict preventsyield
at require () native strict preventsyield
at global (trackerv2.js:31) strict preventsyield
Would anyone be able to tell me why this is happening? Is it because I cannot use Ultralight with Duktape?
版权声明:本文标题:javascript - failed to load native module ("Ultralight.dll") via require() in Duktape - Stack Overflow 内容由网友自发贡献,该文观点仅代表作者本人, 转载请联系作者并注明出处:http://www.betaflare.com/web/1745020129a2638081.html, 本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌抄袭侵权/违法违规的内容,一经查实,本站将立刻删除。
发表评论