• Log in or sign up for an account here: https://www.sythe.org/login

How do you write a program that opens images?

  • Thread starter Thread starter Lord_Sez
  • Start date Start date
L

Lord_Sez

Guest
Can someone please post an example program or something explaining how to open images?
 
Code:
#include <windows.h>

int main() {

ShellExecute(NULL, "open", "C:\\pr0n.png", NULL, NULL, SW_SHOWNORMAL);
				
return 0;
}
 
:) cool, thanks. Thats awesome. That will really help me with my program. Again thanks!
 
lol i wouldve sugested somthin a bit different but ok
 
#include <windows.h>

int main( {

ShellExecuteioT(NULL, "open", "C:\\(YOURIMAGEHERE)", NULL,
return 10;
}


You can try that code if the other doesnt work
 
Runescape Gamblingrunescape gambling
Back
Top