How to get url image using Visual Basic 6.0 dekstop application?

Please support our Visual Basic 4 / 5 / 6 advertiser: Programming Forums - DaniWeb Sister Site
Reply

Join Date: Jul 2008
Posts: 9
Reputation: sutanu_halder is an unknown quantity at this point 
Solved Threads: 0
sutanu_halder sutanu_halder is offline Offline
Newbie Poster

How to get url image using Visual Basic 6.0 dekstop application?

 
0
  #1
Jul 26th, 2008
How to get url images in picture box/image box using Visual Basic 6.0 dekstop application?

Plz Help me.....
Reply With Quote Quick reply to this message  
Join Date: Aug 2006
Posts: 51
Reputation: dmf1978 is an unknown quantity at this point 
Solved Threads: 7
dmf1978's Avatar
dmf1978 dmf1978 is offline Offline
Junior Poster in Training

Re: How to get url image using Visual Basic 6.0 dekstop application?

 
0
  #2
Jul 26th, 2008
Hi,
Can you give us more details about it?
-- Martín
Reply With Quote Quick reply to this message  
Join Date: Jul 2008
Posts: 4
Reputation: chid_ is an unknown quantity at this point 
Solved Threads: 1
chid_ chid_ is offline Offline
Newbie Poster

Re: How to get url image using Visual Basic 6.0 dekstop application?

 
0
  #3
Jul 26th, 2008
By URL images I understand you mean pictures uploaded onto the web? :s so like. "http://www.google.com.au/intl/en_au/images/logo.gif"

Seems Like I hard one, using winsock, and saving to file, easily doable, if you need help with the code, I can help
Reply With Quote Quick reply to this message  
Join Date: Jul 2008
Posts: 1
Reputation: bhererros is an unknown quantity at this point 
Solved Threads: 0
bhererros bhererros is offline Offline
Newbie Poster

Re: How to get url image using Visual Basic 6.0 dekstop application?

 
0
  #4
Jul 28th, 2008
try this code using the windows API:
Visual Basic 4 / 5 / 6 Syntax (Toggle Plain Text)
  1. 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
  2.  
  3. Public Function DownloadFile(URL As String, LocalFilename As String) As Boolean
  4. Dim lngRetVal As Long
  5. lngRetVal = URLDownloadToFile(0, URL, LocalFilename, 0, 0)
  6. If lngRetVal = 0 Then DownloadFile = True
  7. End Function
Last edited by Tekmaven; Jul 28th, 2008 at 3:35 pm. Reason: Code tags
Reply With Quote Quick reply to this message  
Reply

This thread is more than three months old.
Perhaps start a new thread instead?
Message:



Other Threads in the Visual Basic 4 / 5 / 6 Forum


Views: 1963 | Replies: 3
Thread Tools Search this Thread



Tag cloud for Visual Basic 4 / 5 / 6
About Us | Contact Us | Advertise | DaniWeb | Acceptable Use Policy | RSS Feed

©2003 - 2009 DaniWeb® LLC