Improve company productivity with a Business Account.Sign Up

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 12565
  • Last Modified:

Calling DLL in JAVASCRIPT

I have to call a dll from javascript.How I have to call that.Kindly help me in this.
0
jesudass
Asked:
jesudass
  • 4
  • 3
1 Solution
 
bhagyeshtCommented:
Is the dll on the server or client?

Regards,
Bhagyesh
0
 
bhagyeshtCommented:
if its on the client then use

ExcelApp = new ActiveXObject(<progID>);
where program id is the string for the com object.
like "Excel.Application"

Regards,
Bhagyesh
0
 
jesudassAuthor Commented:
Can you give me an example with the syntax plz.

0
What Kind of Coding Program is Right for You?

There are many ways to learn to code these days. From coding bootcamps like Flatiron School to online courses to totally free beginner resources. The best way to learn to code depends on many factors, but the most important one is you. See what course is best for you.

 
bhagyeshtCommented:
0
 
jesudassAuthor Commented:
Thanks a lot.I want synatx for the other type for <projid> can u call 1 ocx or dll with the classid with an example pls.
0
 
JanMahCommented:
Hi,

If the DLL is in the client use the following
var l_Obj = new ActiveXObject("ComponentName.ClassName");

If it is OCX then in an ASP or HTML file use the following,

<OBJECT classid=CLSID:<Class ID> height="95%" align=center id=<Id> width="95%" >
</OBJECT>

JanMah
0
 
jesudassAuthor Commented:
I want to add an ocx or dll at runtime. I want to declare a variable as object then i want to assign an ocx as
var l_Obj = new ActiveXObject("ComponentName.ClassName");
similar to this can I give classid instead of this I have developed an OCX I know the classid .How do I call at runtime.
0
 
bhagyeshtCommented:
in this case u need to install it on the client pc and register it. u may need to use a web installer to install this once done u can call it

Regards,
Bhagyesh
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

Join & Write a Comment

Featured Post

Free Tool: SSL Checker

Scans your site and returns information about your SSL implementation and certificate. Helpful for debugging and validating your SSL configuration.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

  • 4
  • 3
Tackle projects and never again get stuck behind a technical roadblock.
Join Now