Im trying to implement a simple update function, but I cant get this function to work with binary files. Can someone please post a snippet of code showing how to implement this?
I have tried recasting the lplpszAcceptTypes every which way but loose, and VC keeps complaining about it. A search of the net shows that im nto alone in this problem, but turns up no solution as yet.
Currently I have it implmented as such:
const char szMIME = "image/bmp";
lpMIME = &MIME;
/* snip code that copies szMIME into allocated memory pointed to by MIME; */
hRequest = HttpOpenRequest( hConnection , NULL , (char *)&szFile , NULL , NULL , (LPSTR *)lpMIME/*image/bmp*/ , INTERNET_FLAG_KEEP_CONNECTION || INTERNET_FLAG_PRAGMA_NOCACHE , 0 );