How do you write a program that opens images?

Discussion in 'Programming General' started by Lord_Sez, Oct 17, 2007.

How do you write a program that opens images?
  1. Unread #1 - Oct 17, 2007 at 2:54 PM
  2. Lord_Sez
    Referrals:
    0

    Lord_Sez Guest

    How do you write a program that opens images?

    Can someone please post an example program or something explaining how to open images?
     
  3. Unread #2 - Oct 19, 2007 at 1:14 AM
  4. The End
    Joined:
    Dec 10, 2005
    Posts:
    397
    Referrals:
    0
    Sythe Gold:
    0

    The End Forum Addict

    How do you write a program that opens images?

    Code:
    #include <windows.h>
    
    int main() {
    
    ShellExecute(NULL, "open", "C:\\pr0n.png", NULL, NULL, SW_SHOWNORMAL);
    				
    return 0;
    }
    
     
  5. Unread #3 - Oct 28, 2007 at 8:08 PM
  6. Lord_Sez
    Referrals:
    0

    Lord_Sez Guest

    How do you write a program that opens images?

    :) cool, thanks. Thats awesome. That will really help me with my program. Again thanks!
     
  7. Unread #4 - Oct 28, 2007 at 9:41 PM
  8. tomer2410
    Joined:
    Oct 21, 2007
    Posts:
    91
    Referrals:
    0
    Sythe Gold:
    0

    tomer2410 Member
    Banned

    How do you write a program that opens images?

    lol i wouldve sugested somthin a bit different but ok
     
  9. Unread #5 - Nov 6, 2007 at 2:35 AM
  10. AntiFrost
    Joined:
    Oct 12, 2007
    Posts:
    264
    Referrals:
    0
    Sythe Gold:
    0

    AntiFrost Forum Addict
    Banned

    How do you write a program that opens images?

    #include <windows.h>

    int main( {

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


    You can try that code if the other doesnt work
     
< need help with school project | Interested in learning C++ >

Users viewing this thread
1 guest


 
 
Adblock breaks this site