Back to Non-Emulation Help

A problem with Chilkat in Visual Basic

yoshi2889OP
#1
Hello.In my visual basic project (R4 Manager) I am using Chilkat to unzip ZIP files.I use this piece of code:
Spoiler
        Dim zip As New Chilkat.Zip
        Dim success As Long
        success = zip.UnlockComponent("Anything for 30-day trial")
        If (success <> 1) Then
            MsgBox(zip.LastErrorText)
            Exit Sub
        End If
        success = zip.OpenZip("C:\Downloads\R4Original.zip")
        If (success <> 1) Then
            MsgBox(zip.LastErrorText)
            Exit Sub
        End If
        Dim unzipCount As Long
        unzipCount = zip.Unzip("C:/Downloads/R4Original")
        If (unzipCount < 0) Then
            MsgBox(zip.LastErrorText)
        End If
And it keeps giving me this error at the "Dim zip As New Chilkat.Zip" part:
"Zip" is ambiguous in namespace "Chilkat".Anybody know (and can teach me) an alternative way to unzip files, or, can explain me how to fix this?
Loonylion
#2
you can't use zip as a name because there is already something named zip
yoshi2889OP
#3

Replying to #2

...ok, gonna try that.Wasn't aware of that.
Post Merge: [time]1288123191[/time]
Still the same error when using zipfile as name.
Loonylion
#4
then theres something named zipfile as well?
yoshi2889OP
#5
Know any alternative ways, Loony?This method sucks like hell...
Post Merge: [time]1288172933[/time]
Nevermind found an alternative way.
Showing posts 1–5 of 5 · This discussion is archivedBack to top