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.


HTML Code:
Dim file As String = "myfile.dat"

        Dim vb6Hashclass As VB6_MD5Hash.hashFile = New VB6_MD5Hash.hashFile

            Dim HashResults As String
            HashResults = vb6Hashclass.hashFile(file, "12352125")

        Catch Ex As Exception


        End Try