Changing desktop to online .bmp image using c++ - help!!
Expand Post »
Hi guys
First post on this website, so go easy on me.
I'm a fairly inexperienced programmer, mostly using snippets of other people's code and adapting it for my own uses, but I have found a problem. I want to change my desktop programatically, but to a picture on the internet, not on my hard drive. I have included my current code. Is there anything I have to change to make it work, like an addition to the url of the picture?
The code compiles fine, but it just changes my desktop to grey instead of the image. Also, it works with any .bmp images on my hard drive.
SystemParametersInfo( SPI_SETDESKWALLPAPER, 0, (PVOID)"http://www.deh.enr.state.nc.us/pws/rules/bitmap%20enr%20logo.bmp" , SPIF_UPDATEINIFILE ); // Just an example url
No one has posted to this discussion for at least three months. Please let old threads die and do not reply to them unless you feel you have something new and valuable to contribute that absolutely must be added to make the discussion complete. Otherwise, please start a new thread in this forum instead.