Results 1 to 5 of 5

Thread: More Resource Questions..

  1. #1

    Thread Starter
    Member
    Join Date
    Jul 2002
    Posts
    36

    More Resource Questions..

    How can I make a application that will use an EXTERNAL resource file. Right now, it is compiling my resource file into the executable.

  2. #2
    The Devil crptcblade's Avatar
    Join Date
    Aug 2000
    Location
    Quetzalshacatenango
    Posts
    9,091
    A resource file must be compiled into something. The only other thing you can really do besides compiling it directly in, is to compile it into a DLL and have a class in the DLL that calls into the resource file.
    Laugh, and the world laughs with you. Cry, and you just water down your vodka.


    Take credit, not responsibility

  3. #3
    Only Slightly Obsessive jemidiah's Avatar
    Join Date
    Apr 2002
    Posts
    2,431
    You wouldn't be able to use a resource file in the exact sense of a resource file like that, though you could just use data from external files.
    The time you enjoy wasting is not wasted time.
    Bertrand Russell

    <- Remember to rate posts you find helpful.

  4. #4

    Thread Starter
    Member
    Join Date
    Jul 2002
    Posts
    36
    OK, I think I am going to change the way my program will work..

    Does anyone know of a class or something I can use to have resources in an external resource file, and pull different files from that resource file preferably one at a time or something. I am ultimatly looking for something that I can easily use e.g.

    ImageResources = NewResourceManager
    ImageResources.ResourceFile ("resource_filename.res")
    Image As Byte
    Image = ImageResources.GetFile ("imagename.gif")

    Then the binary data would be in Image, and I would have to have the entire resource file constantly in memory..

    What I am creating is an application that has a built in web server (for serving images and javascripts to the WebBrowser component). I don't want the users to be able to just browse and copy all the images and content, so I am trying to have them all in an archive that is much harder for them to break.

    Anything like tha tpossible?

  5. #5
    Only Slightly Obsessive jemidiah's Avatar
    Join Date
    Apr 2002
    Posts
    2,431
    Through a number of API calls, you could get the actual (bitmap) binary data of a picture, though I don't believe that's really what you're after. On http://www.pscode.com/ you'll be able to find compression/encryption algorithms that should end up doing what you want. Good luck!
    The time you enjoy wasting is not wasted time.
    Bertrand Russell

    <- Remember to rate posts you find helpful.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width