| | |
Changing desktop to online .bmp image using c++ - help!!
Please support our C++ advertiser: Intel Parallel Studio Home
![]() |
•
•
Join Date: Sep 2009
Posts: 1
Reputation:
Solved Threads: 0
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.
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.
c++ Syntax (Toggle Plain Text)
#include <windows.h> int main() { SystemParametersInfo( SPI_SETDESKWALLPAPER, 0, (PVOID) "http://www.deh.enr.state.nc.us/pws/rules/bitmap%20enr%20logo.bmp" , SPIF_UPDATEINIFILE ); // Just an example url }
![]() |
Similar Threads
- PNG and BMP image resizing problem (PHP)
- Help with manually creating a BMP image (C++)
- Loading Bmp image to the console (C)
- function for creating bmp image (PHP)
- I have bugs appearing on my desk top (Windows NT / 2000 / XP)
- Cannot find server or DNS Error - please help! (Viruses, Spyware and other Nasties)
- Desktop background hijacked-NEW Problem (Web Browsers)
- changing desktop icons text colour (Windows NT / 2000 / XP)
- changing desktop themes (OS X)
Other Threads in the C++ Forum
- Previous Thread: class
- Next Thread: how to find a folder
Views: 941 | Replies: 1
| Thread Tools | Search this Thread |
Tag cloud for background, bitmap, bmp, c++, desktop, url
api apple application array arrays assignment background binary bitmap bmp c++ char char* class code compile console convert delete design desktop developers development directshow distributions download drawing encryption engine error exam file flash format forums fstream function functions game gdi+ gnu graph htaccess html image int introduction ireland java job laptop line linux lnk2019 mac math microsoft music newbie news novell opacity operatingsystems output problem program programing programmers programming python read recursion recursive redhat redirect registry remote richedit rpg samples snakes sticky stream string strings struct system template templates text tree troubleshoot ubuntu url virtualization visual web win32 windows windows7







