Solved

Image formats

Posted on 1997-06-03
3
223 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?
0
Comment
Question by:Begemot
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
3 Comments
 
LVL 4

Accepted Solution

by:
md041797 earned 30 total points
ID: 1163814
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.
0
 

Author Comment

by:Begemot
ID: 1163815
Unfourtunately, the preogram is for DOS, so I cannot use a DLL file.
0
 
LVL 4

Expert Comment

by:md041797
ID: 1163816
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.
0

Featured Post

Free Tool: Site Down Detector

Helpful to verify reports of your own downtime, or to double check a downed website you are trying to access.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Article by: SunnyDark
This article's goal is to present you with an easy to use XML wrapper for C++ and also present some interesting techniques that you might use with MS C++. The reason I built this class is to ease the pain of using XML files with C++, since there is…
  Included as part of the C++ Standard Template Library (STL) is a collection of generic containers. Each of these containers serves a different purpose and has different pros and cons. It is often difficult to decide which container to use and …
The viewer will learn how to user default arguments when defining functions. This method of defining functions will be contrasted with the non-default-argument of defining functions.
The viewer will learn additional member functions of the vector class. Specifically, the capacity and swap member functions will be introduced.
Suggested Courses

622 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question