Google Answers Logo
View Question
 
Q: Using WINHTTP in place of WinInet ( No Answer,   0 Comments )
Question  
Subject: Using WINHTTP in place of WinInet
Category: Computers > Programming
Asked by: den2002-ga
List Price: $5.00
Posted: 18 Nov 2002 12:39 PST
Expires: 21 Nov 2002 13:28 PST
Question ID: 110080
I have a piece of code that uses wininet control to ftp a file from
within Access xP.  I want to replace the wininet with the winhttp
control. (end users computer doesnt like the wininet control for some
reason, and besides i already use the winhttp for other things in that
program.  seems daft using two different internet controls).

The code is as follows:

Function UploadFile(ByVal HostName As String, _
    ByVal username As String, _
    ByVal password As String, _
    ByVal LocalFileName As String, _
    ByVal RemoteFileName As String) As Boolean

    Dim ftp As Inet

    Set ftp = New Inet
    With ftp
        .Protocol = icFTP
        .RemoteHost = HostName
        .username = username
        .password = password
        .Execute .URL, "Put " + LocalFileName + " " + RemoteFileName
        Do While .StillExecuting
            DoEvents
        Loop
        UploadFile = (.ResponseCode = 0)
    End With
    Set ftp = Nothing
End Function

Any suggestions?
Answer  
There is no answer at this time.

Comments  
There are no comments at this time.

Important Disclaimer: Answers and comments provided on Google Answers are general information, and are not intended to substitute for informed professional medical, psychiatric, psychological, tax, legal, investment, accounting, or other professional advice. Google does not endorse, and expressly disclaims liability for any product, manufacturer, distributor, service or service provider mentioned or any opinion expressed in answers or comments. Please read carefully the Google Answers Terms of Service.

If you feel that you have found inappropriate content, please let us know by emailing us at answers-support@google.com with the question ID listed above. Thank you.
Search Google Answers for
Google Answers  


Google Home - Answers FAQ - Terms of Service - Privacy Policy