Register for your free account! | Forgot your password?

Go Back   elitepvpers > Coders Den > C/C++
You last visited: Today at 10:49

  • Please register to post and access all features, it's quick, easy and FREE!

Advertisement



URLDownloadToFile()

Discussion on URLDownloadToFile() within the C/C++ forum part of the Coders Den category.

Reply
 
Old   #1
 
Doktor.'s Avatar
 
elite*gold: 0
Join Date: Aug 2011
Posts: 1,190
Received Thanks: 549
URLDownloadToFile()

Hey, also ich hab mir so eben einen FTP Server erstellt wo ich mit meinem Programm eine Datei herunterladen will.

Beim ersten start downloadet er auch die richtige Datei, das Problem kommt aber wenn ich aufn FTP Server die Datei die ich downloaden will umtausche gegen eine neuere Version der Datei( URL bleibt dann gleich) downloadet das Programm irgendwie die alte Version, obwohl die nicht mehr aufn Server existiert...hoffe jemand weiß ne Lösung dagegen.

PHP Code:
#include "stdafx.h"
using namespace std;

int main()
{
    
cout << "Neue Version wird heruntergeladen..." << endl;
    
DeleteUrlCacheEntry(TEXT("ftp://***********.rar"));
    
HRESULT hr URLDownloadToFile 0
                              (
L"ftp://***********.rar"),
                              (
L"****.rar"), 0);    
    
cout << "Download abgeschlossen" << endl;


    return 
0;


Doktor. is offline  
Thanks
1 User
Old 10/08/2013, 20:46   #2
 
c0w's Avatar
 
elite*gold: 3653
The Black Market: 378/0/0
Join Date: Aug 2008
Posts: 30,854
Received Thanks: 529
hehe, ich schließ mich mal an, hatte nämlich mal das selbe problem bei messages an mein tool, nachrichten die gar nimma aufm server waren wurden ans tool übertragen
c0w is offline  
Old 10/08/2013, 20:48   #3
 
elite*gold: 0
Join Date: Jun 2013
Posts: 27
Received Thanks: 9
Schlies mal die UrlCache verbindung und lass sie neu aufbauen.
Kirajashi is offline  
Old 10/08/2013, 21:02   #4
 
Doktor.'s Avatar
 
elite*gold: 0
Join Date: Aug 2011
Posts: 1,190
Received Thanks: 549
Wie meinst du das mit dem schließen?

Ok hab das Problem irgendwie gelöst^^.

Geht nicht:
Code:
DeleteUrlCacheEntry(TEXT("ftp://http://msdn.microsoft.com/en-us/library/windows/.rar"));

HRESULT hr = URLDownloadToFile ( 0, 
                              (L"ftp://http://msdn.microsoft.com/en-us/library/windows/.rar"),
                              (L"****.rar"), 0, 0 );
Funktioniert:
Code:
DeleteUrlCacheEntry(TEXT("ftp://http://msdn.microsoft.com//en-us//library/windows//.rar"));

HRESULT hr = URLDownloadToFile ( 0, 
                              (L"ftp://http://msdn.microsoft.com//en-us//library/windows//.rar"),
                              (L"****.rar"), 0, 0 );
An den stellen wo nur ein Slash ist einfach noch ein hin machen, dann haut es irgendwie hin^^.
Doktor. is offline  
Reply




All times are GMT +2. The time now is 10:49.


Powered by vBulletin®
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
SEO by vBSEO ©2011, Crawlability, Inc.
This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.

Support | Contact Us | FAQ | Advertising | Privacy Policy | Terms of Service | Abuse
Copyright ©2024 elitepvpers All Rights Reserved.