We help IT Professionals succeed at work.

Image formats

Begemot
Begemot asked
on
Medium Priority
262 Views
Last Modified: 2010-04-10
Hi,
I'm writing a program that displays several images during the course of it's run, I want to store every image as a separate file, but I don;t want other people to be able to open those files with any other program, like PaintBrush.  How would I go about doing that?
Comment
Watch Question

Commented:
create a dll with nothing but a resource file in it.  put your bmp file in this then you can use LoadResource on the dll.

Not the solution you were looking for? Getting a personalized solution is easy.

Ask the Experts

Author

Commented:
Unfourtunately, the preogram is for DOS, so I cannot use a DLL file.

Commented:
OK, then you could scramble the file by XORing the same bits for every byte in the file and doing it again to unscramble.

Simple, but it keeps other programs from reading it.
Access more of Experts Exchange with a free account
Thanks for using Experts Exchange.

Create a free account to continue.

Limited access with a free account allows you to:

  • View three pieces of content (articles, solutions, posts, and videos)
  • Ask the experts questions (counted toward content limit)
  • Customize your dashboard and profile

*This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.

OR

Please enter a first name

Please enter a last name

8+ characters (letters, numbers, and a symbol)

By clicking, you agree to the Terms of Use and Privacy Policy.