Home

Basics
Overview
Menus
Toolbar
Tree
Code Editor
Search Frame
Change History

Intermediate
Add/Delete
Keywords
Search Lists
Date/Time
Shortcut Keys
Custom Icons
HTML Export
Hyperlinks
Drag & Drop
Bookmarks
Macros
Printing
Fonts
Hex View
Easter Eggs

Advanced
Revision Control
Object Storage
Language Def
Remote Folders
Server Sync
Online Search
Import Code
gbFlashLib

Forums
Announcements
Questions
Suggestions

Personal
Webcam
Biography
Contact Me

GBIC >> gbWare >> gbCodeLib >> Object Storage
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 object file.

Four toolbar buttons are available to add, remove, extract and view objects:

  • Add
    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 not affected.
  • Remove
    Remove the object from the database (does not delete the original object file).
  • Save
    Save a copy of the object to a specified folder. The object file name does not change.
  • View
    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.