Debuggee and Dlls' resources
The resource dialog
Changing the exe/dll being looked at
Viewing a resource
Extracting a resource
Using the keyboard in the resource dialog
Dumping the resource list
Printing the resource list

The resource dialog
The "inspect, exe/dll resources" menu item produces a modeless dialog in which you can view the resources in the resource section, and may comprise icons, bitmaps, menus, dialogs, stringtables, version information and other data.

Note that a cursor or icon always have a "group cursor" or a "group icon" resource entry as well as an entry for its own raw data. The group entries contain size and colour information about the cursor or icon which is used by the system to determine which version of the cursor or icon to use to suit the display. In the resources shown here there is only one version of the cursor or icon. The ID of the cursor or icon is simply a count-up from 1 inserted by the resource compiler.
The address of each resource is the address of the beginning of the resource (that is, the raw data of the resource, not its directory entry) in the exe file as loaded by the system. Bitmaps appear as you move the mouse cursor over the little red expansion boxes.

Changing the exe/dll being looked at
Use the drop down combo box to do this. The files shown here are the files currently loaded by the debuggee in its own address space or in shared memory.

Viewing a resource
To view a resource click on the resource you want to look at and click the "View" button. An inspector window will appear (similar to a data inspector window) which will show you the data in the resource you have chosen. The "View All" button permits you to view the data in all the resources in one inspector. Note, if you want to view the whole resource section (including all directories) you should instead use the menu item "inspect, create new data inspector by .., exe/dll addresses".

Extracting a resource
This feature allows you to save a resource to a file. You can save a resource either to a ".res" file, in a format suitable for linking, or to a data file, which you can analyse using a text editor or hex editor such as Paws (see http://www.GoDevTool.com), or in the case of a cursor, icon or bitmap to a ".cur", ".ico" or ".bmp" file respectively. Note that when prompted for a filename in the Windows "save" dialog, GoBug suggests a name for the file. This is a name generated at random by GoBug. You can use this or change the name as you wish.
Note that icons and cursors always have a corresponding "group icon" or "group cursor". This permits different versions and sizes of the icon or cursor to be contained within the group icon or group cursor as it may be. You can extract either an individual icon, or if you extract a group icon or cursor, you will extract all the icons or cursors in the group.

Using the keyboard in the resource dialog
The keyboard interface in the resource dialog is the same as for other dialogs except that you can view a bitmap resource by selecting the line containing the name of the bitmap using the up and down arrows when the focus is in the listview control, then use right arrow to make the bitmap appear and left arrow to remove it. Use the up and down arrows to look at other bitmaps.

Dumping the resource list
Ensure that the resource dialog is visible and go to the menu item "file, dump". Click on the appropriate dialog name which will appear in the menu item. Alternatively right click on the pane and choose "dump the pane". Choose a file name for the dumped file (GoBug will suggest a name). Choose a path for the file to be written (GoBug will remember this for the next time you debug this particular exe). Choose the type of file to make (use ANSI unless you want to make a Unicode file because you are using non-Roman characters in the resource names or types). The list of resources is always dumped in full. The file which is created on this dump is plain text with carriage returns and line feeds but no tabs. It is usually best to view the dumped file with an editor set to a fixed width font (as opposed to a proportionally spaced font).

Printing the resource list
Ensure that the resource dialog is visible and go to the menu item "file, print". Click on the appropriate dialog name which will appear in the menu item. Alternatively right click on the pane and choose "print the pane". The list of resources is always dumped in full. You can change the font used for printing by using the "settings, fonts, when printing" menu item.