Node.js: Error with ffi module node.js Uncaught Error: Dynamic Linking Error: Win32 error 193

Hello Folks,

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. When I am trying to call the dll function I am getting the below error:

Uncaught Error: Dynamic Linking Error: Win32 error 193

Best Regards,
Mohit Pandit
Who is Participating?
Julian HansenConnect With a Mentor Commented:

Error 193 is a bad EXE format  - it means the application you are trying to run is not a valid windows application.

Are you mixing 32 / 64 bit architectures?
MohitPanditAuthor Commented:
Thanks, we replaced with 64 bit and it works.
Julian HansenCommented:
You are welcome.
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.