ok soweit klar
nur hat ich schon mal nen thread eröffnet und hab keine antwort bekommen es geht um das hier von nen IBindStatusCallback & UrlDownloadToFile
in c++ console funktionierts is ja bloss ne cout ausgabe
[cpp]
STDMETHOD(OnProgress)(ULONG ulProgress, ULONG ulProgressMax,
ULONG ulStatusCode, LPCWSTR wszStatusText)
{
cout << "Downloaded " << ulProgress << " of " << ulProgressMax << " byte(s), " << " Status Code = " << ulStatusCode << endl;
return S_OK;
}
[/cpp]
Aber unter winapi komm ich net weiter
und das funktioniert net
[cpp]
STDMETHOD(OnProgress)(ULONG ulProgress, ULONG ulProgressMax,
ULONG ulStatusCode, LPCWSTR wszStatusText)
{
char s[260];
sprintf(s, "%d KB / %d KB", ulProgress /1024, ulProgressMax /1024);
SetWindowText(hwndStatic,s)
return S_OK;
}
[/cpp]