URLDownloadtoFile help
-
Does anyone have code that downloads a file from the internet and saves it into a file. I know I have to use this: HRESULT URLDownloadToFile( LPUNKNOWN pCaller, LPCTSTR szURL, LPCTSTR szFileName, DWORD dwReserved, LPBINDSTATUSCALLBACK lpfnCB ); But I am not sure how I get this to work. -Ryan M.
-
Does anyone have code that downloads a file from the internet and saves it into a file. I know I have to use this: HRESULT URLDownloadToFile( LPUNKNOWN pCaller, LPCTSTR szURL, LPCTSTR szFileName, DWORD dwReserved, LPBINDSTATUSCALLBACK lpfnCB ); But I am not sure how I get this to work. -Ryan M.
CString strUrl = _T("http://ravib.com");
CString strFilename = _T("C:\\ravib.txt");
HRESULT hResult = ::URLDownloadToFile (NULL, strUrl, strFilename, 0, NULL);
if (hResult != S_OK)
error();/ravi My new year's resolution: 2048 x 1536 Home | Articles | Freeware | Music ravib@ravib.com
-
CString strUrl = _T("http://ravib.com");
CString strFilename = _T("C:\\ravib.txt");
HRESULT hResult = ::URLDownloadToFile (NULL, strUrl, strFilename, 0, NULL);
if (hResult != S_OK)
error();/ravi My new year's resolution: 2048 x 1536 Home | Articles | Freeware | Music ravib@ravib.com
thanks ravi. -Ryan M.
-
Does anyone have code that downloads a file from the internet and saves it into a file. I know I have to use this: HRESULT URLDownloadToFile( LPUNKNOWN pCaller, LPCTSTR szURL, LPCTSTR szFileName, DWORD dwReserved, LPBINDSTATUSCALLBACK lpfnCB ); But I am not sure how I get this to work. -Ryan M.
Check out this article: Using Internet Explorer to download files for you[^] --Mike-- Personal stuff:: Ericahist | Homepage Shareware stuff:: 1ClickPicGrabber | RightClick-Encrypt CP stuff:: CP SearchBar v2.0.2 | C++ Forum FAQ ---- Laugh it up, fuzzball.