Change wallpaper programmatically using c++ and windows api

后端 未结 3 1087
灰色年华
灰色年华 2021-02-03 13:40

I\'ve been trying to write an application, using Qt and mingw32, to download images and set them as the background Wallpaper. I have read several articles online about how to do

3条回答
  •  予麋鹿
    予麋鹿 (楼主)
    2021-02-03 14:22

    "C:\Documents and Settings\Owner\My Documents\Wallpapers\wallpaper.png";
    

    shouldn't this be:

    "C:\\Documents and Settings\\Owner\\My Documents\\Wallpapers\\wallpaper.png";
    

提交回复
热议问题