User Tools

Site Tools


using_the_clarion_6_version_resource_template_in_a_multi_application_setting.htm
Navigation:  Guide to Examples >====== Using the Clarion Version Resource Template in a Multi-Application Setting ====== Previous pageReturn to chapter overviewNext page

The Version Resource Template is an easy to use global extension template for adding standard product information and version stamping to your applications. An optional feature of the template is that you can select an external resource file to be used, providing a mechanism to stamp “Product family” information across multiple applications.

This topic will guide you through the very simple steps required to apply the shared information from a single application to others in the product. Note that the specific build number may change from those shown.

The example files are located in ..\Clarion7\examples\versionres. The three application files used are DATA.APP, CODE.APP and MAINAPP.APP. The DATA.APP contains all File and Class declarations as well as holding the project where the “Product” information is maintained in the Global Version Resource template. The CODE.APP is merely a source code application with a single procedure and uses the external “Product” information maintained by the DATA.APP file. Finally the MAINAPP.APP is the executable that incorporates the other DLLs and uses the external “Product” information maintained by the DATA.APP file.

First let's open the DATA.APP and go to the Global Extensions and select the Product Version tab

VREx1.jpg

The information entered on this tab is the “Product family” information that can be shared with other applications. When we compile the application and examine the details of the DLL (RIGHT-CLICK on the DLL in the Windows Explorer, and select Properties) we can see it displayed like this:

VREx2.jpg

Note that the Product Version entry is not the same as the File Version shown at the top of the dialog. The File Version is information about this specific resource.

This screenshot displays the Product Name:

VREx3.jpg

Open the CODE.APP file and go to the Global Extensions and select the Product Version tab of the Version Resource template, which should look like this:

VREx4.jpg

Note that we have selected the “Use External Product Information” checkbox and the used the ellipses button to select the “data.version” file.

After building the DLL we can examine the properties and see that the Product Version is the same as the DATA.DLL file.

VREx5.jpg

And that the Product Name matches as well

VREx6.jpg

Repeat the same steps for the MAINAPP.APP file as used in the CODE.APP file and it will contain the same Product Version and Name as the DATA.DLL file:

VREx7.jpg

Again, the Product Name for the MAINAPP is shown below:

VREx8.jpg

using_the_clarion_6_version_resource_template_in_a_multi_application_setting.htm.txt · Last modified: 2021/04/15 15:57 by 127.0.0.1