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";
LPSTR MIME[3];
LPVOID lpMIME;
lpMIME = &MIME[0];
/* snip code that copies szMIME into allocated memory pointed to by MIME[0]; */
hRequest = HttpOpenRequest( hConnection , NULL , (char *)&szFile , NULL , NULL , (LPSTR *)lpMIME/*image/bmp*/ , INTERNET_FLAG_KEEP_CONNECTION || INTERNET_FLAG_PRAGMA_NOCACHE , 0 );



LinkBack URL
About LinkBacks


