How to manage PAK files in vb programs?


DevX Home    Today's Headlines   Articles Archive   Tip Bank   Forums   

Results 1 to 7 of 7

Thread: How to manage PAK files in vb programs?

  1. #1
    Join Date
    Apr 2005
    Posts
    4

    Question How to manage PAK files in vb programs?

    Hi!

    I have a vb program which uses bmp files and displays them on the screen. These files are kept in a folder named "Graficos". I would like to compress all those bmp files so that the program code, internally, would uncompress the needed bmp in every moment, it would use it, and then it would close it. Above all, I want the bmp files to be completely invisible for everyone.

    I've had a look at "pak" files... but I don't understand a word. Please, could you help me? I will be very grateful to anyone who could help me with this way (pak files) or with any other one.

    Thanks!!!!!!!!!!!!!!!!!!!!

    (I'm not an English speaker, so please excuse my mistakes ^^)

  2. #2
    Join Date
    Nov 2003
    Location
    Sweden
    Posts
    74
    Hi,

    You need some tool to temporarily depack the wanted file, show it, and then delete it. A quick google search gave this, that might be a start...
    http://www.aegidian.org/gqt/depak/

    But why are you trying to invent the wheel again? Nowadays Windows can do this by itself. Both showing BMP files as well as creating compressed archives. Are you in the porno business or???

    Bernie

  3. #3
    Join Date
    Apr 2005
    Posts
    4
    Hi, Bernie,

    What I want is not a format like zip because that could be seen by everyone. And I'm not in the porno business: it's about a game which uses BMPs for characters, trees, houses and so on. I want to run the program without showing those files. Why? Because they are "handmade" by our staff and, although the game is free, we don't want people to "steal" our images.

    I don't just mean to zip the files, but to use them in the game without having to include the images themselves. Somehow encripted. I'm sure it is perfectly possible, but I don't know how

    Is it clearer now?

    Thanks ^^

  4. #4
    Join Date
    Nov 2003
    Location
    Sweden
    Posts
    74
    Hi,
    And sorry about the porno stuff. Well, there are a number of ways to keep something invisible. From the easiest thing (using zips but changing extension to DAT, BIN or whatever) to some 256 bit encrypted style. The choice must be up to you. Don't forget though, that as soon it's showed on screen it can be captured, and all your effort is lost.

    Are the images small? If less than 64k you can hide them as resource data in a RES file! Or find out you own imageformat that no other app can resolve. There are numerous ways to go. The simpliest one might be the best...

    Bernie

  5. #5
    Join Date
    Apr 2005
    Posts
    4
    Thanks for your answers,

    I think I didn't explain the problem properly... We would chose the PAK way to do it because we know how to compress all the files in a PAK file. Nevertheless, we don'k know how to manage those data from the vb program. I mean, how can I "explain" to the program that the images it had before in the "Graficos" folder, are now in a PAK file... What code shall I use?

  6. #6
    Join Date
    Nov 2003
    Location
    Sweden
    Posts
    74
    Hi,

    At the link I posted previously you can download some code (written in RealBasic) that manage to unpack PAK-files. I haven't studied it, but it may give you some input to how the PAK-files are constructed and how to extract each content of it. I downloaded it but found it compressed with Stuffit (.SIT) a tool I don't have.

    Bernie

  7. #7
    Join Date
    Apr 2005
    Posts
    4
    OK, I have tried with that link, but I can do nothing.

    Anyway, thank you Bernie.
    Last edited by Melawen; 04-17-2005 at 06:22 AM.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
HTML5 Development Center
 
 
FAQ
Latest Articles
Java
.NET
XML
Database
Enterprise
Questions? Contact us.
C++
Web Development
Wireless
Latest Tips
Open Source


   Development Centers

   -- Android Development Center
   -- Cloud Development Project Center
   -- HTML5 Development Center
   -- Windows Mobile Development Center