I'm using nodejs and node webkit for a windows app (node-webkit is now NWjs).
I installed the node-odbc
module and used the included tests to see if it works. Testing the database connection worked fine via the command line ("node aTestFile.js"), but the moment I try to call it from within index.html inside node-webkit, I receive the following error:
Uncaught node.js Error
Error: A dynamic link library (DLL) initialization routine failed.
c:\Users\SomeUser\Documents\Development\accessingDB\node_modules\odbc\build\Release\odbc_bindings.node
at Error (native)
And if I try to add the file as the node-main in the package.json, nothing happens.
I need a little help. What am I doing wrong?