sukeshpabolu
sukeshpabolu5mo ago

Getting Error: Could not open library: The specified module could not be found. while opening a dll

This is the code const dllPath = "./uFCoder-x86_64.dll" const uFCoder = Deno.dlopen( dllPath, { ReaderOpen: { parameters: [], result: "i32", } }, ); console.log(uFCoder.ReaderOpen())
5 Replies
bartlomieju
bartlomieju5mo ago
Could you paste the whole error you are getting from Deno? Maybe open an issue in GH to make it easier to track
sukeshpabolu
sukeshpaboluOP5mo ago
The issue is with the dll I dont have the source code for it except for the compiled dll
bartlomieju
bartlomieju5mo ago
Are you sure it contains the ReaderOpen symbol?
sukeshpabolu
sukeshpaboluOP5mo ago
This is a DLL that is referenced in another js project. There they were using node-ffi and ref-ffi packages along with this But I didn’t want to use node-gyp so I was trying to use deno ffi and rewrite the code
bartlomieju
bartlomieju4mo ago
Hmmm, calling @divy for help as they might be able to figure this out We;ll probably need to see the source code though

Did you find this page helpful?