I have an electron 6.0.7, angular 8, nodejs 6.9.0 application. There are activex dlls on client side, not on server side, that I need to reference them from the angular app and call their functions. How can I do it without creating local nodejs server on client side ? I have seen how to do it by creating a server locally. I am looking for solution without creating the server, cause the dlls exist locally on client side.
Asked
Active
Viewed 428 times
0
-
there is a reason for browsers not to allow the execution of client side programs and/or activeX controls: it would be a security flaw – The Fabio Nov 10 '19 at 10:23
-
Possible duplicate of [Call Function from DLL loaded in front-end javascript (load dll in clientside javascript)](https://stackoverflow.com/questions/34791334/call-function-from-dll-loaded-in-front-end-javascript-load-dll-in-clientside-ja) – The Fabio Nov 10 '19 at 10:54
-
Thanks for the answer. Yes, I know that this is a security risk, but these activex dlls are our dlls. On angularjs we could use: require('winax'); and call the functions of the dlls. On angulr >= 2 the typescript should be compiled and we are getting an error on the line: require('winax'). – D.F Nov 10 '19 at 10:59
-
how about this: https://stackoverflow.com/a/41220676/4604645 – The Fabio Nov 10 '19 at 11:02
-
I will still get an error on: require('winax'). This is for importing js file. Thanks. – D.F Nov 11 '19 at 07:27