[thelist] ASP and a DLL

David.Cantrell at Gunter.AF.mil David.Cantrell at Gunter.AF.mil
Wed Nov 13 08:47:00 CST 2002


>I guess i get to reply to my own message. For anyone looking for
information
>on how to use ActiveX components (.dll's) with Active Server Pages check
out
>http://www.tutorial-web.com/asp/dll/index.asp for a very intuitive
tutorial.
>Say that 10 times fast.

Just to say, in case you aren't already aware, ASP is simply an ISAPI filter
that creates a COM framework that takes any COM-compliant scripting language
(VBScript, JScript, PerlScript, PythonScript, etc) and interfaces with
built-in COM objects such as Request, Session, Server, etc. This means yes,
you can use COM (aka ActiveX in nasty-marketing-speak) objects with ASP as
well as use ASP objects inside your COM objects, but if you reference the
ASP objects in your COM object the COM object can ONLY be used inside of an
ASP call, never by itself, because the ASP objects would not exist.

Just remember whenever creating COM objects for use with a COM scripting
language that all returned types MUST be Variant, since the scripting
framework only takes variant data types.

Also, watch out for ASP's 20-minute default session life, which means
instantiated COM objects will hang around in memory for at least 20 minutes
past the last request by that session's user, unless explicitly destroyed.
Also, close all DB connections prior to closing or they will gradually fill
up available memory with open connections.

HTH,
-dave



More information about the thelist mailing list