std::filesystem::current_path();
const std::wstring filenm = std::filesystem::current_path() + L"\\bruh.jpeg";
SystemParametersInfo(SPI_SETDESKWALLPAPER, 0, (void*)filenm + L"\\bruh.jpeg", SPIF_UPDATEINIFILE);
I know my code is scary, I've spent as much time as possible trying to figure out a possible solution. This is where I have left off. I am trying to call an image file to set the desktop background as that image. I'm trying to use std::filesystem::current_path()
for the folder path and then call the image itself.
Aucun commentaire:
Enregistrer un commentaire