Difference between revisions of "CALicense"
(Navigation Next) |
|||
(One intermediate revision by the same user not shown) | |||
Line 39: | Line 39: | ||
set license = CreateObject("CALicense") | set license = CreateObject("CALicense") | ||
− | === Analytica | + | === Analytica === <!--T:13--> |
<!--T:14--> | <!--T:14--> | ||
Line 63: | Line 63: | ||
<!--T:19--> | <!--T:19--> | ||
− | * [[Instantiating CAEngine using CALicense]] | + | * [[Working_with_Models,_Modules,_and_Files_in_ADE#Instantiating_CAEngine_using_CALicense|Instantiating CAEngine using CALicense]] |
+ | |||
− | |||
{| style="margin: 1em auto 1em auto;width: 100%;border:0;table-layout: fixed;" cellpadding=5 | {| style="margin: 1em auto 1em auto;width: 100%;border:0;table-layout: fixed;" cellpadding=5 | ||
|- style="text-align: center" | |- style="text-align: center" | ||
| [[CARenderingStyle]] <- || [[CALicense]] || -> [[CAPicture]] | | [[CARenderingStyle]] <- || [[CALicense]] || -> [[CAPicture]] | ||
</translate> | </translate> |
Latest revision as of 15:08, 1 July 2025
ADE User Guide > ADE Server Class Reference >
A CALicense object can be obtained directly, for example:
license = new CALicense;
Or:
license = CreateObject("CALicense");
The CALicense provides a method for instantiating a CAEngine, and provides details about why such an instantiation failed, which would otherwise not be available if you instantiate the CAEngine directly. It also provides some information about limitations in your license to use ADE.
A CALicense instance can be obtained even if your ADE license code is invalid, expired, etc. This makes it possible for your application to say “failed because ....”.
Creation
C#
CALicense license = new CALicense();
Visual Basic.NET
Dim license As CALicense = new CALicense
C++
VBScript
set license = CreateObject("CALicense")
Analytica
COMCreateObject("ADE.CALicense")
Properties
{get} long AvailableLicenseInstances
{get} bool CanUseOptimizer
{get} short int ErrorCode
{get} string ErrorText
{get} long MaxLicenseInstances
{get} string OutputBuffer
{get} string RlmHostId
{get} string RlmPath
{get} string RlmUserId
Methods
CAEngine NewCAEngine()
void SetApplicationLicenseCode(string)
See Also
CARenderingStyle <- | CALicense | -> CAPicture |
Comments
Enable comment auto-refresher