Hi,
I'm getting a bit lost in how to make use of a custom ActiveX DLL in my ASP .Net pages.
I've inherited a solution whereby an ActiveX DLL is created in VB6, which gets various system information, such as computer name (from kernel32), and other things from WMI. This seems to build ok into a DLL.
The plan is then to make use of this in an ASP .NET developed intranet site. The user visits the website, and after they've verified some information, the activeX DLL should be used to get the system information of the computer they're using to access the intranet.
I've looked around the web and I can't find a whole load of information on doing this.
Where I've got to so far is trying to use Javascript to call a function in the DLL. However, when the javascript runs, it gives an error saying that the Automation Server can't create the object.
I've used regsvr32 to register the DLL (is there a way around having to do this?), and still get the error. I think I have to insert the object into the HTML, but that requires a classid and the location of the DLL. The stuff I've inherited currently has this in the HTML:
<OBJECT id=T1
codeBase= height=26
width=270 align=center classid=clsid:43D5190E-9BAE-4FDA-877E-EBB2D61756B1
VIEWASTEXT>
Now, I'm testing this on my laptop, so can I just give a file path as the codeBase? And what's the easiest way of finding out the classid?
Sorry for this barrage of questions, I'm a bit stuck here and hopefully just need a point in the right direction.
I'm getting a bit lost in how to make use of a custom ActiveX DLL in my ASP .Net pages.
I've inherited a solution whereby an ActiveX DLL is created in VB6, which gets various system information, such as computer name (from kernel32), and other things from WMI. This seems to build ok into a DLL.
The plan is then to make use of this in an ASP .NET developed intranet site. The user visits the website, and after they've verified some information, the activeX DLL should be used to get the system information of the computer they're using to access the intranet.
I've looked around the web and I can't find a whole load of information on doing this.
Where I've got to so far is trying to use Javascript to call a function in the DLL. However, when the javascript runs, it gives an error saying that the Automation Server can't create the object.
I've used regsvr32 to register the DLL (is there a way around having to do this?), and still get the error. I think I have to insert the object into the HTML, but that requires a classid and the location of the DLL. The stuff I've inherited currently has this in the HTML:
<OBJECT id=T1
codeBase= height=26
width=270 align=center classid=clsid:43D5190E-9BAE-4FDA-877E-EBB2D61756B1
VIEWASTEXT>
Now, I'm testing this on my laptop, so can I just give a file path as the codeBase? And what's the easiest way of finding out the classid?
Sorry for this barrage of questions, I'm a bit stuck here and hopefully just need a point in the right direction.