Click to See Complete Forum and Search --> : DLL runing on the client


drorziv
August 31st, 2003, 11:07 AM
Hi
How can I download and use dll on a client using HTML (Run on the client)?

ZoSoo7
September 1st, 2003, 04:31 AM
The Dll has to be pushed out and registered on the client machine, as you probably already know (regsrv32 dll location), after that you can just instantiate it using javascript or vbscript, here would be the example:

<script language=vbscript>
dim myObj
myObj = CreateObject("dllName.className")
'do whatever code, say it has a method that adds 2 numbers
document.myForm.someTextBox.value = myObj.addThis(1,2)

set myObj = nothing
</script>

IE has to be configured to run client side dll's, it's under Security in the Internet Options.

Vanny
September 9th, 2003, 02:59 AM
You would probably be better server trying to make the dll into an active X program as getting someone to install an active X item is much easier than making them download an app then regsvr it.