Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

VB6 applications use FRX files to store binary data associated with various control properties. NET Windows Forms  This includes things as simple as formatted text for a text boxes, to images, and icons, to large BLOBs of proprietary information associated with ActiveX controls.  

Likewise, .NET applications use Resx files to store metadata with each form. Resx files contain binary data associated with the application.  Resx files are XML files that contain contain designer metadata as well as graphics (base-64-encoded binary information i.e., bitmaps, icons). These files may also contain Legacy legacy ActiveX control property settings and binary information needed for Interoped interoped controls (i.e., OCXState).

...

gmBasic handles the most common types of FRX data (formatted text and images) automatically.  However, one commonly used type of FRX data that is not handled automatically is the graphics associated with ImageList controls.  If your application uses graphics from an ImagesList, you will need to use a Author Resx Files operation from the tools menu.  This operation will process the FRX files and create Resx files containing the ImageList data in base-64-encoded format.  

To run generate Resx files for ImageLists

  1. Select the migration units fro which you want to create to Resx files
  2. Select [Tools/Author Resx Files]

...

  1. from the menu

This option will create a cache of resx files for each migration unit in the migration project . The Resx content in these files will be included in your target projects as needed if you include the Resx attribute with the compile and store them in the resx folder in your workspace.

To direct gmBasic to use the Resx data from your resx files in the resx folder, you must set the Resx attribute of the Compile command in your translation script:

Tip

The standard way to do this is to use the %ResxFolder% script variable.

Code Block
<Compile Project="%SrcPath%" Resx="%ResxFolder%"
>


Tip

See the FileExplorer sample for an example.