Re: Sharing a single com obj between vc++ and js

Tech-Archive recommends: Fix windows errors by optimizing your registry



Hello Sanjay,

I instantiate a COM object from VC++. Is there anyway that I can pass
this com object pointer to a javascript code so that i can access the
object through javascript

Sure. As long as the object implements IDispatch, it's accessible from JavaScript.



I'm not sure what you are asking, though... Do you also want your VC++ code to execute the JavaScript or is the script running in some existing host? How is your code connected to this host?


--
Best Regards,
Kim Gräsman


.



Relevant Pages

  • Re: Automation in Acrobat - Marking words in a lot of documents (Javascript)
    ... there are possibilities in JavaScript ... Accomplish a search in the documents stored in a certain folder, ... I forgot to mention the Adobe Acrobat version I'm currently using, ... I was asking for your help, to post some lines of javascript code, ...
    (comp.text.pdf)
  • Re: interesting applet security problem
    ... the Javascript from host 1 ... can make the applet do basically anything the applet is allowed to do, ... like ipfw/ipchains/iptables or a small forwarding server). ...
    (comp.lang.java.security)
  • Re: Forms in table cells modify cell height - grrr
    ... By HTML versions from HTML 4.0 onwards, the meaning of a form element is undefined unless it has an action attribute with a http URL. ... a page might be generated by JavaScript code but the user might then disable scripting. ... To take a less far-fetched example, an author might just goof things up and e.g. omit the JavaScript code that prevents normal form submission.) ... Posting a URL is still the best approach in HTML problems. ...
    (alt.html)
  • Re: Javascript change from VS 2005 to VS 2008
    ... chart and when you click the bar on the chart. ... doCall will receive the string "my string", ... Those conditions are evaluated using client side javascript. ... The key point here is that the javascript code ran correctly in VS 2005 ...
    (microsoft.public.dotnet.framework.aspnet)
  • Re: Extending HTML Elements
    ... For the checks information is taken out of the DIVs ... better than adding the information later with javascript or "saving" ... Since this is essentially for JavaScript, I would put the information itself into JavaScript code and use just identifiers for it in HTML, e.g. id="x1" or id="Joe" in a tag, so that there is a data structure in the JavaScript code that holds the information associated with each id. ... If desired, you could make that code part of the HTML source, by putting it inside a element rather than an external file. ...
    (comp.infosystems.www.authoring.html)