|
-
Jul 22nd, 2001, 04:23 AM
#1
Thread Starter
Hyperactive Member
My FIRST Dll for server is stuffed up
Hello,
I have just created my first DLL with a name of m32 and a class of pcls: this is the code:
VB Code:
Public Sub OutputNode()
Session.SessionID
End Sub
and in ASP page i put this code
Code:
<%
Dim pg
Set pg=Server.CreateObject ("m32.pcls")
pg.OutputNode
%>
and i get this:
m32 error '800a01a8'
Object required
/Default.asp, line 4
Anyone know how to fix that? The file name is m32.dll it is registed.
Thanks for help,
-
Jul 22nd, 2001, 07:00 PM
#2
Lively Member
Hi,
You can't acutally return a value from a method (sub), you'll have to use a function:
Public Function OutputNode()
OutputNode = Session.SessionID
End Sub
Or a property:
Public Property Get OutputNode() As Variant
OutputNode = Session.SessionID
End Property
Hope this is of help.
Best regards,
Rob Brown.
-
Jul 22nd, 2001, 07:45 PM
#3
Thread Starter
Hyperactive Member
Sorry cant get it to work. Shows an error message that Object doesnt support something.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|