Solved

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

Posted on 2016-08-09
3
371 Views
Last Modified: 2016-08-18
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
0
Comment
Question by:MohitPandit
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
3 Comments
 
LVL 56

Accepted Solution

by:
Julian Hansen earned 500 total points
ID: 41748625
https://msdn.microsoft.com/en-us/library/windows/desktop/ms681382(v=vs.85).aspx

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?
0
 
LVL 5

Author Closing Comment

by:MohitPandit
ID: 41761805
Thanks, we replaced with 64 bit and it works.
0
 
LVL 56

Expert Comment

by:Julian Hansen
ID: 41761976
You are welcome.
0

Featured Post

Free Tool: SSL Checker

Scans your site and returns information about your SSL implementation and certificate. Helpful for debugging and validating your SSL configuration.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

PROBLEM: The other day I was working on adding an ajax request to a webpage that already had a dialog box on the page.  The dialog box was using relative positioning to be positioned next to a form field I had on the page.  Everything was working…
JavaScript can be used in a browser to change parts of a webpage dynamically. It begins with the following pattern: If condition W is true, do thing X to target Y after event Z. Below are some tips and tricks to help you get started with JavaScript …
The viewer will learn how to dynamically set the form action using jQuery.
The viewer will learn the basics of jQuery, including how to invoke it on a web page. Reference your jQuery libraries: (CODE) Include your new external js/jQuery file: (CODE) Write your first lines of code to setup your site for jQuery.: (CODE)

735 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question