|
-
Jan 3rd, 2004, 09:41 PM
#1
Thread Starter
Member
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.
-
Jan 3rd, 2004, 10:09 PM
#2
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
-
Jan 3rd, 2004, 10:09 PM
#3
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.
-
Jan 3rd, 2004, 10:16 PM
#4
Thread Starter
Member
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?
-
Jan 3rd, 2004, 10:20 PM
#5
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
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|