I need to use IBindStatusCallback interface with GetBindInfo function to pass the callback to URLDownloadToFile api..
my goal is to downloading original file from server ie: not from cache. thats why i have to use GetBindInfo function of IBindStatusCallback interface. But the code seems to be not working..
And is it necessary to declare all the functions in the IBindStatusCallback inherited class ??..
the code is here
Code:STDMETHODIMP CBindStatusCallback::GetBindInfo (DWORD* pgrfBINDF, BINDINFO* pbindInfo) { *pgrfBINDF = BINDF_GETNEWESTVERSION | BINDF_NOWRITECACHE; pbindInfo->cbSize = sizeof(BINDINFO); return S_OK; } CBindStatusCallback call; URLDownloadToFileA (0, dwnUrl, "dwn.dat", 0, &call);




Reply With Quote