Need a help in accessing DLL from Javascript

  • sivakumar
  • Beginner
  • Beginner
  • sivakumar
  • Posts: 35

Post 3+ Months Ago

Hi,

I'm trying to access a DLL created on VC++ from Javascript. Is there any way to achieve this?

Tried all the below steps:
1. First, i have tried accessing the COM DLL from my PHP script, there am getting only the object and am unable to access the methods.
2. I tried the same thing in javascript by giving the class ID.
eg:
Code: [ Select ]
        
<object id="my_obj" classid="clsid:9142ECC1-D591-405D-8F34-AFF5D0A57704"></object>
<input type="button" value="Call into COM object" onclick="alert(my_obj);" />
  1.         
  2. <object id="my_obj" classid="clsid:9142ECC1-D591-405D-8F34-AFF5D0A57704"></object>
  3. <input type="button" value="Call into COM object" onclick="alert(my_obj);" />

After clicking the button am getting an alert saying '[Object], when i try to access the method it throws an error saying 'Object doesn't support the property or method'.

Note: I have registered the COM DLL.

Help would be much appreciated.
Thanks in advance.

--
Siva
  • Anonymous
  • Bot
  • No Avatar
  • Posts: ?
  • Loc: Ozzuland
  • Status: Online

Post 3+ Months Ago

Post Information

  • Total Posts in this topic: 1 post
  • Users browsing this forum: No registered users and 137 guests
  • You cannot post new topics in this forum
  • You cannot reply to topics in this forum
  • You cannot edit your posts in this forum
  • You cannot delete your posts in this forum
  • You cannot post attachments in this forum
 
 

© 1998-2014. Ozzu® is a registered trademark of Unmelted, LLC.