Go Premium for a chance to win a PS4. Enter to Win

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 237
  • Last Modified:

Image formats

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
Begemot
Asked:
Begemot
  • 2
1 Solution
 
md041797Commented:
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
 
BegemotAuthor Commented:
Unfourtunately, the preogram is for DOS, so I cannot use a DLL file.
0
 
md041797Commented:
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

[Webinar] Cloud and Mobile-First Strategy

Maybe you’ve fully adopted the cloud since the beginning. Or maybe you started with on-prem resources but are pursuing a “cloud and mobile first” strategy. Getting to that end state has its challenges. Discover how to build out a 100% cloud and mobile IT strategy in this webinar.

  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now