3

I want to call a function, which is written in "C" DLL, from node.js JavaScript. I am using "ffi" module in node.js and electron. The function which I want to call is "int FDColor_GetSWVersion(char* softwareVersion)". I am using the below code:

  var libm = ffi.Library(__dirname + "\\viewmodels\\FDColor.dll", {
  'FDColor_GetSWVersion': [ 'int', ['string' ] ]
   });

But I am getting the error:

Uncaught Error: Dynamic Linking Error: Win32 error 193

1
  • Anybody have any idea? Commented Aug 9, 2016 at 12:55

2 Answers 2

3

It looks like that error means you have a 32/64 bit mismatch. You need to build the dll to match the loading process.

Sign up to request clarification or add additional context in comments.

Comments

0

I chose the 64-bit DLL and loaded it successfully

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.