Solved

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

Posted on 2016-08-09
3
195 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
  • 2
3 Comments
 
LVL 52

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 52

Expert Comment

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

Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
SharePoint 2013 Blog Template 2 31
Error on Add method 1 37
Materializecss - Different Behaviors in Browser's 1 17
Need a starter for ETL protocol? 4 33
Introduction Chart.js, used properly, can visually add a difference to your charting applications. It engages your visitors and allows them to interact with data they otherwise wouldn't be able to without expensive and complicated systems. For this…
Introduction If you're like most people, you have occasionally made a typographical error when you're entering information into an online form.  And to your consternation, the browser remembers the error, and offers to autocomplete your future entr…
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…

932 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

Need Help in Real-Time?

Connect with top rated Experts

14 Experts available now in Live!

Get 1:1 Help Now