Solved

Image formats

Posted on 1997-06-03
3
187 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
  • 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

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

Suggested Solutions

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…
In days of old, returning something by value from a function in C++ was necessarily avoided because it would, invariably, involve one or even two copies of the object being created and potentially costly calls to a copy-constructor and destructor. A…
The goal of the video will be to teach the user the concept of local variables and scope. An example of a locally defined variable will be given as well as an explanation of what scope is in C++. The local variable and concept of scope will be relat…
The viewer will learn how to use the return statement in functions in C++. The video will also teach the user how to pass data to a function and have the function return data back for further processing.

911 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

Need Help in Real-Time?

Connect with top rated Experts

23 Experts available now in Live!

Get 1:1 Help Now