How can I make a application that will use an EXTERNAL resource file. Right now, it is compiling my resource file into the executable.
Printable View
How can I make a application that will use an EXTERNAL resource file. Right now, it is compiling my resource file into the executable.
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.
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.
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?
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!