Click here to Skip to main content
Rate this: bad
good
Please Sign up or sign in to vote.
See more: VC8.0
How to include URLDownloadToFile in QT??? How to include the header file for It??
Posted 6-Mar-11 20:25pm
Rate this: bad
good
Please Sign up or sign in to vote.

Solution 2

Found in a Qt example for a browser plugin[^]:
 
#include <qt_windows.h>
  Permalink  
Rate this: bad
good
Please Sign up or sign in to vote.

Solution 1

The function you're after is in urlmon.h.
You could try it like this:
 
#include <tchar.h>
#include <urlmon.h>
#include <Wininet.h>
#pragma comment(lib, "urlmon.lib")
#pragma comment(lib,"wininet.lib")
 
int main()
{
    HRESULT hr;
    LPCTSTR Url = _T("http://url.."), File = _T("etc...");
    hr = URLDownloadToFile (0, Url, File, 0, 0);
    return 0;
}
 
The example above was grabbed from this web site: http://www.dreamincode.net/forums/topic/189846-progress-bar-urldownloadtofile/[^]
 

Regards,
  Permalink  
v2
Comments
Gokulnath007 at 7-Mar-11 7:23am
   
No.. there is no urlmon.h header in QT..
Manfred R. Bihy at 7-Mar-11 8:19am
   
You'll just have to see if that library is available for your device. Besides that you explicitely asked for the function URLDownloadToFile and my answer is absolutely correct that it is in urlmon.h.
 
You have to learn how to make better specifications in your questions. Why not use the QT libraries that are available to you. There are plenty of examples on this site: http://doc.qt.nokia.com/4.7/network-download-main-cpp.html
sariqkhan at 31-Dec-12 8:14am
   
+5

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

  Print Answers RSS
0 OriginalGriff 195
1 ProgramFOX 130
2 Maciej Los 105
3 Sergey Alexandrovich Kryukov 105
4 Afzaal Ahmad Zeeshan 82
0 OriginalGriff 6,564
1 Sergey Alexandrovich Kryukov 6,048
2 DamithSL 5,228
3 Manas Bhardwaj 4,717
4 Maciej Los 4,150


Advertise | Privacy | Mobile
Web03 | 2.8.1411022.1 | Last Updated 24 Mar 2011
Copyright © CodeProject, 1999-2014
All Rights Reserved. Terms of Service
Layout: fixed | fluid

CodeProject, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100