Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Create an Object

Status
Not open for further replies.

marabozu

Programmer
Jan 3, 2001
36
US
I'm learning how to create an Object, and I'm making a project in vb to create an Active Dll. The code is:
Option Explicit
Public Function Divide(Val1, Val2)
Divide = Val1 / Val2
Exit Function
End Function
Public Function Multiply(Val1, Val2)
Multiply = Val1 * Val2
Exit Function
End Function

Then I save the dll file in same directory as my asp file that contains the followins code:

<%@ Language=VBScript %>
<%
Dim objTest
Set objTest = Server.CreateObject(&quot;ExpTest.Object&quot;)
val1 = 10
val2 = 2
Response.write objtest.Divide(val1,val2)
Response.write objtest.Multiply(val1,val2)
%>

...and I get this error:

Server object error 'ASP 0177 : 800401f3'

Server.CreateObject Failed

/mig_exp/class_v2.asp, line 4

800401f3

Can anyone help me on this one?

Thanks


 
Did you register your dll at server???? register it if you have not.
HTH
 
Nanda,

I think that vb6 will automatically register the dll files if I save it in the directory of my web-server.

Miguel Neto
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top