foottuns's tags:
foottuns reads (1):
Who's reading foottuns (0):
  • Currently, no one
When creating or using complex ASP web applications you will surely run into one that requires the use of a DLL. The DLL usually includes code that was compiled in VB, C++, or other Windows programming languages to be used in the ASP application.
Registering a DLL

Before you can start using the code that resides in the DLL file, you must first register the DLL with the windows runtime library. There are two ways to let windows know about this new DLL.

* Save the DLL to C:\Windows\system32\

or

* Manually register it with the regsvr32 application

The first option is self-explanatory, but the second option takes a bit more work. Here is a quick How-To on registering DLLs:

1. Find out the location of your DLL. We will be using C:\Inetpub\wwwroot\nueva-designASP\myDLL.dll in this example.
2. Click on the Start menu and choose Run
3. Type in regsvr32.exe "C:\Inetpub\wwwroot\nueva-designASP\myDLL.dll" (With the quotes)
4. You should get a confirmation message if it succeeded, such as: "DllRegisterServer in C:\Inetpub\wwwroot\nueva-designASP\myDLL.dll succeeded"

Using Your DLL in ASP

Now that you have registered your DLL you need to learn how to access the functions that are contained within it. Let us assume for the sake of this example that the DLL file is called "myDLL.dll" and the name of the class is "myClass".

To create an instance of this class you would use the Server.CreateObject method like so:
ASP Code:
<%
'Note this is example code, it will not work
' unless you create a myDLL, myClass, and a myMethod

Dim myObject
myObject = Server.CreateObject("myDLL.myClass")
myObject.myMethod("something")

myObject = nothing
%>

http://www.nueva-design.com/nvd/Server-Side-Coding/ASP-Tutorial/ASP-Tutorial-355.html


del.icio.us Digg reddit StumbleUpon

Comment on "ASP DLL Information"

asp dll Microsoft active x (Click to add tags below)

(Separate tags using commas, for example: New York, dating, vegetarian)
Comment Anonymously

Halo is Microsoft’s last bid and the only weapon of choice it got on its arsenal on its struggle with Sony for the battle for the game console supremacy....
Facebook, Apple and Google all want to build the next great platform, all vying for web supremacy. Who will win the war?...
Linux the open source OS on rampage.This could be Windows worst nightmare....
Enterprise software stalwart Oracle launched a powerful software, it was designed to power the next generation business....
Symantec award winning product and technology revolutionize the whole industry....