Re: DLL call from JavaScript
Quote:
Originally posted by spanosdm
Hi all,
I use
var <myVar> = new ActiveXObject("<ProjectName>.<ClassName>");
But it doesn't seem to work. The very same DLL works perfectly when called from ASP
Set <myVar>=CreateObject("<ProjectName>.<ClassName>")
The code is so similar, I don't understand why it does not work from javaScript... Any ideas???
:confused:
Thanks,
Dimitris
Are u using it from an ASP page or just a html page with some Jscript thrown in ??
To create objects within the ASP context you have to use
Server.CreateObject. It is an ASP thingo and as such available in all the supporting asp scripting languages including jscript.
Note: The plain "CreateObject" Method is specific to vbscript and
ActivexObject method is specific to Jscript. When ASP comes in to picture and u want to run an object in the context of an ASP Page u have to use Server.CreateObject.
Anyways what's the Activex dll's name ??