Solved

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

Posted on 2016-08-09
3
123 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 51

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 51

Expert Comment

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

Featured Post

Top 6 Sources for Identifying Threat Actor TTPs

Understanding your enemy is essential. These six sources will help you identify the most popular threat actor tactics, techniques, and procedures (TTPs).

Join & Write a Comment

How to build a simple, quick and effective accordion menu using just 15 lines of jQuery and 2 css classes
Introduction JSON is an acronym for JavaScript Object Notation.  It is a text-string data transport mechanism, capable of representing simple or complex data structures in a consistent and easy-to-read manner.  Similar in concept to XML, but more e…
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…

705 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

19 Experts available now in Live!

Get 1:1 Help Now