|
|
How To:
After gathering all the files you want to make into TCompressed resources
into a subdirectory of your Delphi or C++Builder project:
|
Click on the [Create .rc & .res files] button. The following
actions take place:
|
|
-
Each of the files in your subdirectory will be compressed to a
temporary file with the name composed of the original name
combined with the original extension followed by the new extension
.cdt.
-
An ".rc" file will be written with which to direct the
resource compiler.
-
A silent DOS command will be issued to run the resource compiler
with the newly created .rc file as the argument.
-
If successful, a .res file with the same name as your directory
will be created.
-
The temporary .cdt files are erased, leaving your resource
directory as it was.
|
|
You can also:
|
-
Reselect recent work
-
Choose your preferred compression method
-
View a file
-
Extract the CompRes source code
-
Get Help
|
|
| To complete the
process, add the code to project that loads your resources using the
TCompress method "LoadCompressedResource", build your
application and you are done! CompRes comes with sample code, including
abridged source code for CompRes itself, which, of course, uses the
techniques it enables!
For a complete explanation of how to work with resource files in Delphi
read the Borland support document at: http://community.borland.com/article/0,1410,16537,00.html
|
|
|
|
|