URLDownloadToFile -> Help!!!???

closed account (3hMz8vqX)
Hi All,
I cannot get the URLDownloadToFile on my MInGW compiler . . .

So, I would like to get the function from urlmon.dll

So how do I do that using LoadLibrary() and GetProcAddress()

Is the urlmon.dll available on Windows 8 and other versions . . .
Im using Windows 7 and it has that dll . . .

I would like to get a code snippet for this . . .

Can you please please help me . . .

Thankyou everyone in advance!
Do you need help using those two functions? Or are you having trouble with using function pointers? Do you have anything yet? Or are we starting from scratch?

This particular request is going to be annoying to solve because the function you want uses COM objects as arguments. I know that in addition to not having a version of this library, MinGw does not have full support for COM either. This would be so much simpler if you used the MS VS compiler, which Code::Blocks is happy to do by the way.
Last edited on
If you pass NULL as arguments (these are optional anyway) you avoid COM altogether.
Good catch modoran! That makes this interesting.
I was wrong, this was actually really straight forward and not that interesting at all.

@ OP: I guess we're back to my original questions: How far have you gotten and what are you having trouble with? Also, I happen to have a laptop with Windows 8 sitting to the left of me and yes it has the urlmon.dll in the same path that XP, Vista and 7 do.
The same question was asked here and get answered, but @OP didn't bother to respond, so why help him ?
Topic archived. No new replies allowed.