Results 1 to 5 of 5

Thread: [2.0] Extracting a picture from a executable file

  1. #1

    Thread Starter
    Hyperactive Member drattansingh's Avatar
    Join Date
    Sep 2005
    Posts
    395

    [2.0] Extracting a picture from a executable file

    This question popped into my mind when i was coming to work this morning and couldn't figure it out.

    Lets say a simple form with a picture box displaying a picture. Now you could take this executable file and carry it anywhere with the framework and run it and it will show the picture which means that the picture is compiled in the executable right? Is there any way to work backwards from the .exe and get the picture? I know it sounds wierd but let's say there was a button on the form which when pressed would write the picture in the C drive. But i'm not copying the original picture, I'm getting that picture from the executable file.

    Is this possible or just another stupid question?

    Jennifer

  2. #2
    I'm about to be a PowerPoster!
    Join Date
    Jan 2005
    Location
    Everywhere
    Posts
    13,647

    Re: [2.0] Extracting a picture from a executable file

    If they're stored as embedded resources, yes.

  3. #3

    Thread Starter
    Hyperactive Member drattansingh's Avatar
    Join Date
    Sep 2005
    Posts
    395

    Re: [2.0] Extracting a picture from a executable file

    Never heard about embedded resources before. Could you post some links? I tried google didnt get too much.

    Jennifer.

  4. #4
    I'm about to be a PowerPoster!
    Join Date
    Jan 2005
    Location
    Everywhere
    Posts
    13,647

    Re: [2.0] Extracting a picture from a executable file

    Hang on, I'm slightly confused now.

    Do you want to save images that are embedded in YOUR executable, or in another (compiled) one?

  5. #5

    Thread Starter
    Hyperactive Member drattansingh's Avatar
    Join Date
    Sep 2005
    Posts
    395

    Re: [2.0] Extracting a picture from a executable file

    I'm thinking of saving an image from executable. So its one executable running and i want to save a picture from that same executable to some directory. So its like the image is saved in the executable and could be extracted from the same executable.

    Jennifer
    Last edited by drattansingh; Mar 4th, 2007 at 08:14 PM.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width