What happened to the Messenger Plus! forums on msghelp.net?
Shoutbox » MsgHelp Archive » Skype & Technology » Tech Talk » HELP: Downloading MS Access file in VB6 App using INET control

HELP: Downloading MS Access file in VB6 App using INET control
Author: Message:
Salem
Senior Member
****

Avatar

Posts: 769
Reputation: 16
37 / Male / Flag
Joined: May 2004
O.P. RE: RE: HELP: Downloading MS Access file in VB6 App using INET control
quote:
Originally posted by Mike2
Try using an API call to download the DB.

Example from AllApi:

code:
Private Declare Function URLDownloadToFile Lib "urlmon" Alias "URLDownloadToFileA" (ByVal pCaller As Long, ByVal szURL As String, ByVal szFileName As String, ByVal dwReserved As Long, ByVal lpfnCB As Long) As Long
Public Function DownloadFile(URL As String, LocalFilename As String) As Boolean
    Dim lngRetVal As Long
    lngRetVal = URLDownloadToFile(0, URL, LocalFilename, 0, 0)
    If lngRetVal = 0 Then DownloadFile = True
End Function
Private Sub Form_Load()
    'example by Matthew Gates (Puff0rz@hotmail.com)
    DownloadFile "http://www.allapi.net", "c:\allapi.htm"
End Sub


Thanks Mike2, i am in the process of testing to see if it works.

How would i go about haing the progressbar update in order to show the progress of downloading the Access document? I had it working using my previous download method (see my code on in the first post), but how would i change the code to work with this new download method?

Edit: Also, where would i insert code for my program to perform a task once the download is complete.

Thanks in advance

RileyM

This post was edited on 06-03-2005 at 02:36 PM by Salem.
[Image: salem874.smart.jpg][Image: card.png]
Was i Helpful?[/url]
06-03-2005 02:26 PM
Profile PM Find Quote Report
« Next Oldest Return to Top Next Newest »

Messages In This Thread
HELP: Downloading MS Access file in VB6 App using INET control - by Salem on 06-02-2005 at 01:35 PM
RE: HELP: Downloading MS Access file in VB6 App using INET control - by RaceProUK on 06-02-2005 at 01:51 PM
RE: RE: HELP: Downloading MS Access file in VB6 App using INET control - by Salem on 06-02-2005 at 01:54 PM
RE: HELP: Downloading MS Access file in VB6 App using INET control - by Hah on 06-03-2005 at 12:59 PM
RE: RE: HELP: Downloading MS Access file in VB6 App using INET control - by Salem on 06-03-2005 at 01:13 PM
RE: HELP: Downloading MS Access file in VB6 App using INET control - by Mike on 06-03-2005 at 02:01 PM
RE: RE: HELP: Downloading MS Access file in VB6 App using INET control - by Salem on 06-03-2005 at 02:26 PM
RE: HELP: Downloading MS Access file in VB6 App using INET control - by Mike on 06-03-2005 at 02:49 PM
RE: RE: HELP: Downloading MS Access file in VB6 App using INET control - by Salem on 06-03-2005 at 03:00 PM
RE: RE: HELP: Downloading MS Access file in VB6 App using INET control - by Salem on 06-03-2005 at 03:17 PM
RE: HELP: Downloading MS Access file in VB6 App using INET control - by Hah on 06-03-2005 at 02:58 PM
RE: HELP: Downloading MS Access file in VB6 App using INET control - by Hah on 06-03-2005 at 03:14 PM
RE: HELP: Downloading MS Access file in VB6 App using INET control - by Hah on 06-03-2005 at 03:27 PM
RE: RE: HELP: Downloading MS Access file in VB6 App using INET control - by Salem on 06-03-2005 at 03:32 PM
RE: HELP: Downloading MS Access file in VB6 App using INET control - by Hah on 06-03-2005 at 07:12 PM
RE: RE: HELP: Downloading MS Access file in VB6 App using INET control - by Salem on 06-05-2005 at 11:06 AM


Threaded Mode | Linear Mode
View a Printable Version
Send this Thread to a Friend
Subscribe | Add to Favorites
Rate This Thread:

Forum Jump:

Forum Rules:
You cannot post new threads
You cannot post replies
You cannot post attachments
You can edit your posts
HTML is Off
myCode is On
Smilies are On
[img] Code is On