...
Code Block |
---|
|
<?xml version="1.0" encoding="utf-8"?>
<LICENSEFILE>
<FEATURE NAME="F1">
<SETTING MAJOR_VERSION="2014" />
<SETTING MINOR_VERSION="1001" />
</FEATURE>
</LICENSEFILE> |
To ensure successful license checkout, base your code on the following example, where "nYear", "nMonth" and "nDay"
indicate a year, month, and day of the release respectively.
Code Block |
---|
|
int nYear = 2014;
int nMonth = 9;
int nDay = 22;
int nMajor = nYear;
int nMinor = nMonth * 10 + nDay;
LMX_Checkout(LmxHandle, "F1", nMajor, nMinor, 1); |
LMX_Checkout will will return an error if code includes the date later (greater) than the license file date, as shown below:
Code Block |
---|
|
int nYear = 2014;
int nMonth = 12;
int nDay = 3;
int nMajor = nYear;
int nMinor = nMonth * 10 + nDay;
LMX_Checkout(LmxHandle, "F1", nMajor, nMinor, 1); |