How to add a Version number to a Wcem DLL file

TYX Corporation

Productivity Enhancement Systems

Reference

TYX_0051_10

Revision

1.2a

Document

Dll_Version_new.doc

Date

September 11, 2003

 

 

 

CEM dll versioning document


How to add a Version number to a Wcem DLL file

 

In order to attach a version number to a CEM dll, you will need to follow the steps below.

The assumption is that you already have a CEM module with the ability to build a CEM dll. If you need help with those steps, please refer to the online help. You may want to start with the “walk-through” document on the subject:

 

  1. You should have a project with a Wcem module with the ability to build a dll. In this case, the output of the building process will build a Wcem.dll.

 

 

  1. In order to add a version to the dll, from the toolbar, select New File… You should see the window below:

 

 

  1. You should
  • select, the CEM resource file
  • check Add to project
  • In the event that you have more than one CEM module, you should select the one that you are interested in. Wcem is the only one in this case.
  • Enter a name for the File Name:. In this case we chose Analog.

 

 

  1. Click on OK. You should have the following window:

 

 

  1. You will now want to populate the content of the rc file with the following template. For version of Paws 1.23.0 and later, the file will be populated automically:

 

#include "winres.h"

 

LANGUAGE LANG_ENGLISH, SUBLANG_ENGLISH_US

#pragma code_page(1252)

 

/////////////////////////////////////////////////////////////////////////////

//

// Version

//

 

VS_VERSION_INFO VERSIONINFO

 FILEVERSION 1,0,0,3

 PRODUCTVERSION 1,0,0,3

 FILEFLAGSMASK 0x3fL

#ifdef _DEBUG

 FILEFLAGS 0x1L

#else

 FILEFLAGS 0x0L

#endif

 FILEOS 0x4L

 FILETYPE 0x2L

 FILESUBTYPE 0x0L

BEGIN

    BLOCK "StringFileInfo"

    BEGIN

        BLOCK "040904b0"

        BEGIN

            VALUE "Comments", "Your comments\0"

            VALUE "CompanyName", "TYX Corporation\0"

            VALUE "FileDescription", "Your description\0"

            VALUE "FileVersion", "1, 0, 0, 3\0"

            VALUE "InternalName", "Your internal dll name\0"

            VALUE "LegalCopyright", "Copyright 2001 TYX Corporation\0"

            VALUE "LegalTrademarks", "Your legal trademark\0"

            VALUE "OLESelfRegister", "Info 1\0"

            VALUE "OriginalFilename", "Your original DLL name\0"

            VALUE "PrivateBuild", "Your private build version\0"

            VALUE "ProductName", "Your product name\0"

 

            VALUE "ProductVersion", "1, 0, 0, 3\0"

            VALUE "SpecialBuild", "Your spec. build descr.\0"

        END

    END

    BLOCK "VarFileInfo"

    BEGIN

        VALUE "Translation", 0x409, 1200

    END

END

 

 

NOTE:

    • The fields highlighted in green, yellow and blue within the rc file can be changed by the user. Be sure to keep the version value in yellow and in blue synchronized, i.e. for example, if you change the version for FILEVERSION, you should also change it for VALUE "FileVersion",…and make sure that it is the same.

 

  1. You should have the following window:

 

 

  1. After building the project by doing a Rebuild All, you should generate the CEM dll (or dlls if you have more than one CEM module) as part of the building process. In the windows explorer, if you right-click on the dll, in this case Wcem.dll, by selecting the properties, you should see the dll property window. Select the Version tab which should show the information that are extracted from the rc file.