Zum Inhalt springen
View in the app

A better way to browse. Learn more.

Fachinformatiker.de

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

Empfohlene Antworten

Veröffentlicht

Hi,

ich versuche gerade mit URLDownloadToFile() etwas runterzuladen, allerdings

happert es noch am letzten Parameter. Dort wird eine Funktion verlangt die

die Nachrichten vom IE verarbeitet. Ich hab auch schon rausbekommen das

ich die in einer von IBindStatusCallback abgeleiteten Klasse implementieren

muss, aber ich bekomme immer den Fehler "CCallback" : Instanz von abstrakter

Klasse kann aufgrund nachfolgender Elemente nicht erstellt werden.

Hier mal etwas Code:


class CCallback : public IBindStatusCallback
{
public:
CCallback();
~CCallback();

STDMETHOD(OnProgress)(
/* [in] */ ULONG ulProgress,
/* [in] */ ULONG ulProgressMax,
/* [in] */ ULONG ulStatusCode,
/* [in] */ LPCWSTR wszStatusText)
{
return S_OK;
}
};


//unter später:
case IDOK:
{
char szQuelle[500],
szZiel[500];
CCallback cb; //Hier tritt der Fehler auf
GetDlgItemText(hWnd,IDC_EDIT1,szQuelle,500);
GetDlgItemText(hWnd,IDC_EDIT2,szZiel,500);

URLDownloadToFile(0,szQuelle,szZiel,0,&cb);
return 0;
}
[/PHP]

Gruß

Guybrush

PS:Gibt es mit der Funktion eigentlich eine Möglichkeit einen abgebrochenen

Download fortzusetzen?

Erstelle ein Konto oder melde dich an, um einen Kommentar zu schreiben.

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.