2

Is it possible (using one of the server side implementations of javascript .. see http://www.nakedjavascript.com/getting-started-55) to instantiate a COM object and invoke methods on it?

1
  • I'm most interested in a v8 solution Commented Feb 22, 2011 at 9:43

2 Answers 2

4

There is node-win32ole (npm install win32ole).

Sign up to request clarification or add additional context in comments.

Comments

1

That depends on which server-side implementation you’re using. When using ASP/JS (or any other framework using Microsoft’s Windows Scripting engine), that’s not a problem using the ActiveXObject constructor.
When using JSDB, you can use the ActiveX constructor.

Node.js doesn’t really work on Windows, only thru Cygwin, so ActiveX probably won’t be supported.

I have no idea how easy or difficult it would be to access COM objects from SpiderMonkey, V8 or SquirrelFish directly. They have C/C++ interfaces — and are open source, so if you know your way in the language, you could probably add it.

2 Comments

Thanks for the prompt response. I guess I could wrap COM using something like github.com/tsa/vu8 . I have no idea how much work that would be. What interfaces would you need as a minimum? I guess ruby's win32ole.c could be a good place to starthttp://www.ruby-doc.org/stdlib/libdoc/win32ole/rdoc/
Also, I don’t know if .Net is an option, but in that case you should check out this question.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.