Results 1 to 3 of 3

Thread: My FIRST Dll for server is stuffed up

  1. #1

    Thread Starter
    Hyperactive Member made_of_asp's Avatar
    Join Date
    Jul 2001
    Location
    123 Fake Street
    Posts
    394

    Wink 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:
    1. Public Sub OutputNode()
    2. Session.SessionID
    3. 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,
    VS.NET 2003

    Need to email me?

  2. #2
    Lively Member
    Join Date
    May 2000
    Location
    Antrim
    Posts
    80
    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.

  3. #3

    Thread Starter
    Hyperactive Member made_of_asp's Avatar
    Join Date
    Jul 2001
    Location
    123 Fake Street
    Posts
    394

    Unhappy

    Sorry cant get it to work. Shows an error message that Object doesnt support something.
    VS.NET 2003

    Need to email me?

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width