gbCodeLib - Object Storage|
Sometimes a source code snippet needs an image or other file (such as a DLL or EXE) to work
correctly. Or, there might be a Help file or other instructions available in a file
that need to be associated with the snippet - including a large text file where the user would
rather not have the text treated as a snippet.
gbCodeLib allows a user to select a file, associate it with a snippet and store it
for later viewing or extraction. For each snippet gbCodeLib can store a single file of any type.
All such files are stored in a single file called 'gbcodelibresource.res' (a custom
file format - not to be confused with a Microsoft resource file by the same extension).
Although each snippet is limited to association with a single object, multiple objects
can be stored by placing them in a resource file (such as a .res or .zip file) and
saving that file with gbCodeLib.
Note: The gbCodeLib commands that create a remote database also create a remote
Four toolbar buttons are available to add, remove, extract and view objects:
Add an object to the object database, associated with the current code snippet.
A copy of the object is placed in the object database. The original object is
Remove the object from the database (does not delete the original object file).
Save a copy of the object to a specified folder. The object file name does not change.
View the object using the built-in viewer of gbCodeLib. Text and RTF file can be
viewed, as can .BMP, .GIF, .JPG, and .PNG files.
The filename of the object is displayed underneath the snippet title, as shown
in the following image (center textbox below the title).
Note: The object file name is gray, indicating that the content cannot be edited manually.