home *** CD-ROM | disk | FTP | other *** search
-
- XRes
- ----
-
- Most of my programs make use of resource-files. With this unit the resource
- file is assigned to the program. The resource itself can be located
- in different places:
-
- -a) Linked to the program as OBJ with the BINOBJ program
- ( This can be neccessary for programs called from disks )
-
- -b) From a resource file at the same place where the exe was
- found and the extenstion ".EXT"
-
- -c) A resource file Linked to the program with the COPY /B command
- append after the code and overlay !
-
- Also there can be different access methods through the resource depending
- what system-resources aviable. If an OBJ resource is used it is directly
- accessed in the RAM where the code lays. At the other side there would
- be checked what memory types can be used in the following order:
-
- if Ems aviable then use it
- else If Xms avaible then use it
- else use normal (slow) Dos access to the resource
-
- It defines only one variable in the interface which were initalize
- in the unit-init part.
-
- VAR ResFile : TResourceFile; (* All the resources for a program *)
-
- All object resources can be read from that resource file,
- via a ResFile.Get( 'xyz' );
-
-
-
-