Versions Compared
Key
- This line was added.
- This line was removed.
- Formatting was changed.
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 fro which you want to create to Resx files
- 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
...
- :
Tip | |||||||
---|---|---|---|---|---|---|---|
The standard way to do this is to use the %ResxFolder% script variable.
|
Tip |
---|
See the FileExplorer sample for an example. |
Custom FRX to RESX
Some ActiveX controls store complex binary data in FRX files. These files can be converted to either code or Resx data as required, but doing so requires an understanding of the structure of the FRX data. If you know the FRX data structure, you may extend gmBasic to read, interpret, extract, and reauthor FRX data as needed. These advanced techniques can be done with specialized GM tools and the gmBasic APIs (gmSL and gmNI). If you have a must convert proprietary FRX data as part of your migration project, please contact Great Migrations for assistance.
Table of Contents |
---|