I am currently trying to change my desktop background using SystemParametersInfo() vs doesnt give me any errors when I type my stuff in but when I run the program I get this
You need to add L to the file path. L"C:/Windows/Downloaded Program Files/Flowers.jpg" .
L
L"C:/Windows/Downloaded Program Files/Flowers.jpg"
#include "stdafx.h" #include int main() { int return_value = SystemParametersInfo(SPI_SETDESKWALLPAPER, 0, L"d:/flower1.jpg", SPIF_UPDATEINIFILE); return 0; }