Results 1 to 3 of 3

Thread: Calling a vb6 dll from vb.net

  1. #1

    Thread Starter
    Addicted Member rkeslar's Avatar
    Join Date
    Jul 2009
    Location
    Pittsburgh, PA
    Posts
    145

    Question Calling a vb6 dll from vb.net

    I wrote a vb6 dll and now I'm trying to call it in vb.net but I'm getting an object required error. I'm not sure what that means. Do you see anything obvious that I need to do? I haven't worked with vb6 dll's much and this is probably the first one i've tried calling in .net.

    Thanks

    HTML Code:
    Dim file As String = "myfile.dat"
    
    
            Dim vb6Hashclass As VB6_MD5Hash.hashFile = New VB6_MD5Hash.hashFile
    
            Try
                Dim HashResults As String
                HashResults = vb6Hashclass.hashFile(file, "12352125")
                MessageBox.Show(HashResults)
    
            Catch Ex As Exception
    
                MessageBox.Show(Ex.Message)
    
            End Try

  2. #2
    Addicted Member ZenDisaster's Avatar
    Join Date
    Dec 2006
    Location
    Bay Area, CA
    Posts
    140

    Re: Calling a vb6 dll from vb.net

    Did you add a reference to the dll?

  3. #3

    Thread Starter
    Addicted Member rkeslar's Avatar
    Join Date
    Jul 2009
    Location
    Pittsburgh, PA
    Posts
    145

    Re: Calling a vb6 dll from vb.net

    Yes. I did do that.

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