Versions Compared

Key

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

...

Since LM-X requires by default that the version number in the license file be greater than or equal to the version number specified in the application, the license file will determine how long users can continue to use new updates of the software. If a the software version has a date newer than is later than the date specified in the license file, that version of the software will not work without an updated license.

To use dates for the version numbers:

  1. In the license file, set the major version number to yyyy and the minor version number to mmdd

...

  1. , as shown in the following example, which specifies the license file will work until 2014, October 3:

    Code Block
    languagehtml/xml
    <?xml version="1.0" encoding="utf-8"?>
    <LICENSEFILE>
    <FEATURE NAME="F1">
    <SETTING MAJOR_VERSION="2014" />
    <SETTING MINOR_VERSION="

...

  1. 1003" />
    </FEATURE>
    </LICENSEFILE>

...


  1. Set the version number in the application to the current compile date (which must be earlier than or equal to the license file date), as shown in the following example,

...

  1. which specifies the compile date 2014, January 1:

    Code Block
    languagecpp
    int nYear = 2014;
    int nMonth = 

...

  1. 01;
    int nDay = 

...

  1. 01;
    
    int nMajor = nYear;
    int nMinor = nMonth * 10 + nDay;
    
    LMX_Checkout(LmxHandle, "F1", nMajor, nMinor, 1);

...


  1. When you create a future release that specifies a compile date later than the license file date, as shown

...

  1. in the following example,  LMX_Checkout will return an error, and the user will require a new license file to run the new version of the software.  

    Code Block
    languagecpp
    int nYear = 2014;
    int nMonth = 12;
    int nDay = 

...

  1. 30;
    
    int nMajor = nYear;
    int nMinor = nMonth * 10 + nDay;
    
    LMX_Checkout(LmxHandle, "F1", nMajor, nMinor, 1);