1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

DeCaptcher Help

Discussion in 'Visual Basic .NET' started by captchaman, Sep 19, 2011.

  1. captchaman

    captchaman Junior Member

    Joined:
    Sep 16, 2010
    Messages:
    190
    Likes Received:
    842
    Occupation:
    Software Programmer
    Location:
    USA
    Using the DeCaptcher API for the first time and ran into a problem..

    Code:
        Function DecaptcherBalance()
            Dim host As String
            Dim login As String
            Dim passw As String
            Dim port As UInteger
            Dim balance As Double
            host = "api.decaptcher.com"
            login = [snip]
            passw = [snip]
            port = 16549
            Return DecaptcherLib.Decaptcher.Balance(host, port, login, passw, balance)
        End Function
    Returns "0" even though I clearly have a balance of $27.828 on the DeCaptcher website. What am I doing wrong?

    Thanks,
    captchaman


    Edit: I see that if the result is a success then it returns 0. So how do I get it to return the balance?
    Edit 2: I see that the Double "balance" is now set to the balance.
     
    Last edited: Sep 19, 2011