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("ExpTest.Object"
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
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("ExpTest.Object"
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