Using Win32 functions in Visual FoxPro Image Gallery
URL Monikers
..msdn
CreateURLMonikerEx
FindMediaType
IsValidURL
ObtainUserAgentString
URLDownloadToCacheFile
URLDownloadToFile
UrlMkGetSessionOption
Code examples:
Accessing examples contained in this reference from a VFP application
GDI+: converting text strings to images and saving in a graphics file
URLDownloadToCacheFile
..msdn    Add comment     W32 Constants      Translate this page
Downloads data into the Internet cache and returns the file name of the cache location for retrieving the bits.
Code examples:
Accessing examples contained in this reference from a VFP application
GDI+: converting text strings to images and saving in a graphics file
Declaration:
 
HRESULT URLDownloadToCacheFile(
    LPUNKNOWN lpUnkcaller,
    LPCSTR szURL,
    LPTSTR szFileName,
    DWORD dwBufLength,
    DWORD dwReserved,
    IBindStatusCallback *pBSC
);
 
FoxPro declaration:
 
DECLARE INTEGER URLDownloadToCacheFile IN urlmon;
    INTEGER   lpUnkcaller,;
    STRING    szURL,;
    STRING  @ szFileName,;
    INTEGER   dwBufLength,;
    INTEGER   dwReserved,;
    INTEGER   pBSC
 
Parameters:
lpUnkcaller
Pointer to the controlling IUnknown interface of the calling Microsoft® ActiveX® component (if the caller is an ActiveX component).

szURL
Pointer to a string value that contains the URL to be downloaded. This cannot be set to NULL.

szFileName
Pointer to a string value that contains the name of the downloaded file. This cannot be set to NULL.

dwBufLength
Unsigned long integer value that contains the size of the szFileName buffer in bytes.

dwReserved
Reserved. Must be set to 0.

pBSC
Pointer to the caller"s IBindStatusCallback interface.
Return value:
Returns one of the following values: E_FAIL, E_OUTOFMEMORY, S_OK (0).
My comment:
This function always returns a file name if the download operation succeeds.
Word Index links for the URLDownloadToCacheFile :
Translate this page:
  Spanish    Portuguese    German    French    Italian  
FreeTranslation.com offers instant, free translations of text or web pages.
•
Created: 2003-07-09 12:37:55
Modified: 2003-07-09 12:41:09
Visited in last 7 days: 31
User Contributed Notes:
There are no notes on this subject.


Copyright © 2001-2017 News2News, Inc. Before reproducing or distributing any data from this site please ask for an approval from its owner. Unless otherwise specified, this page is for your personal and non-commercial use. The information on this page is presented AS IS, meaning that you may use it at your own risk. Microsoft Visual FoxPro and Windows are trade marks of Microsoft Corp. All other trademarks are the property of their respective owners. 

Privacy policy
Credits: PHP (4.4.9), an HTML-embedded scripting language, MySQL (5.6.38), the Open Source standard SQL database, AceHTML Freeware Version 4, freeware HTML Editor of choice.   Hosted by Korax Online Inc.
Last Topics Visited (54.226.34.209)
16 sec.Function: 'GetMenuItemID'
29 sec.Function: 'LoadBitmap'
43 sec.
Function group: 'Unicode and Character Set'
58 sec.Function: 'SetComputerName'
1.22 min.Function: 'GdiplusStartup'
1.48 min.Function: 'GetDateFormat'
1.77 min.Function: 'MQPurgeQueue'
2.02 min.Function: 'GetProcessHeaps'
Google
Advertise here!