Solved

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

Posted on 2016-08-09
3
428 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 57

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 57

Expert Comment

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

Featured Post

Why Off-Site Backups Are The Only Way To Go

You are probably backing up your data—but how and where? Ransomware is on the rise and there are variants that specifically target backups. Read on to discover why off-site is the way to go.

Question has a verified solution.

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

I found this questions asking how to do this in many different forums, so I will describe here how to implement a solution using PHP and AJAX. The logical flow for the problem should be: Write an event handler for the first drop down box to get …
Today, the web development industry is booming, and many people consider it to be their vocation. The question you may be asking yourself is – how do I become a web developer?
The viewer will learn how to dynamically set the form action using jQuery.
The viewer will learn the basics of jQuery including how to code hide show and toggles. 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…

734 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