|
-
November 7th, 2009, 06:07 PM
#1
Changing wallpaper via command line
Ive got this code
#include <windows.h>
#include <string>
using namespace std;
int main(string PATH)
{
SystemParametersInfo( SPI_SETDESKWALLPAPER, 0, PATH, SPIF_UPDATEINIFILE );
return 0;
}
But when i try to compile it i get,
cannot convert `std::string' to `void*'
If i add (PVOID) infront of path then i get
cannot convert `PATH' from type `std::string' to type `void*'
any tips/advice?
Tags for this Thread
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|