Hi Anantha,
please post the complete error msg on your next post.. that's will be alot more easier the troubleshoot.. in the meantime try the below mentioned solutions..
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\syst em32\
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:
Find out the location of your DLL. We will be using C:\Inetpub\wwwr oot\tizagASP\my DLL.dll in this example.
Click on the Start menu and choose Run
Type in regsvr32.exe "C:\Inetpub\www root\tizagASP\m yDLL.dll" (With the quotes)
You should get a confirmation message if it succeeded, such as: "DllRegisterSer ver in C:\Inetpub\wwwr oot\tizagASP\my DLL.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.CreateOb ject 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
-
%>
-