Author Resx Files
- Mark Juras
Overview
VB6 applications use FRX files to store binary data associated with various control properties. Â This includes things as simple as formatted text for text boxes, to images and icons, to proprietary information associated with ActiveX controls. Â
Likewise, .NET applications use Resx files to store binary data associated with the application. Â Resx files are XML files that can contain application metadata and base-64-encoded binary information (i.e., bitmaps, icons). Resx files may also contain legacy ActiveX control property settings and binary information needed for interoped controls (i.e., OCXState).
gmBasic handles the most common types of FRX data (i.e., formatted text and images for VB intrinsic controls) automatically. Â
ImageList FRX to ResxÂ
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 may convert these images to Resx files  as follows
To run generate Resx files for ImageLists
- Select the migration units for which you want to create to Resx files. Â This is typically this all VBPs that have forms with FRX data..
- Select [Tools/Author Resx Files] from the menuÂ
This will create a resx files for each migration unit in the migration project and store them in the resx folder in your workspace. Â The Resx files will contain the ImageList data in base-64-encoded format. Â Â - To direct gmBasic to use the Resx data from your resx files in the resx folder, you must edit the translation script file and add the Resx attribute of the Compile command:
The standard way to do this is to use the %ResxFolder% script variable.  See the FileExplorer sample for an example.
<Compile Project="%SrcPath%" Resx="%ResxFolder%" />
Â
Authoring Resx files is typically a one-time preparation step: if the ImageLists used by the source VB6 do not change content or location, then you will not have to rerun Author Resx files.
Custom FRX to RESX
Some ActiveX controls store complex binary data in FRX files. These files can be converted to code and/or Resx data. Â Custom FRX data conversion requires an understanding of the structure of the FRX data. Â Â If you know the FRX data structure, you may extend gmBasic to extract and reauthor FRX data as needed. Â
These conversions can be done with specialized GM tools and the gmBasic APIs (gmSL and gmNI). If you must convert proprietary FRX data as part of your migration project, please contact Great Migrations for assistance.
See Also
Compile command Resx attribute
Select OmitResxData option