X

Help Articles are product support tips and information straight from the NV5 Geospatial Technical Support team developed to help you use our products to their fullest potential.



5746 Rate this article:
No rating

Licensing an IDL ActiveX control with an embedded IDL key

THIS INFORMATION ONLY PERTAINS TO SOFTWARE VERSIONS IDL 8.5, ENVI 5.3 AND PRIOR

Topic:


The IDL ActiveX control can be used to access IDL functionality in applications written in other languages that support ActiveX, such as Visual C++ or Visual Basic. An IDL ActiveX control contains an embedded license string along with some initialization code that it executes before its initial call to IDL. This TechTip describes how to use the embedded licensing method in your ActiveX control.Discussion:

Step 1. Obtain Your Licensing Information:
RSI Technical Support will send a text file that contains the embedded license strings that IDL uses to launch in licensed mode.

Step 2. Modify Your Application Code:
Add the code provided by RSI Technical Support to your external application. Please note: For VisualBasic, the InitStringInfo method must be called to define the embedded license prior to ActiveX initialization (e.g., "IDLDrawWidget1.InidIDL(Me.hwnd)"). The code sample below shows an example embedded license key:
     ' IDL ActiveX Control Application license for: myapp, My App
'License built for IDL Version 6.0
IDLDrawWidget1.InitStringInfo("12345678abcdabcd," & _
"12345678abcdabcd," & _
"12345678abcdabcd," & _
"12345678abcdabcd," & _
"12345678abcdabcd," & _
"12345678abcdabcd," & _
"12345678abcdabcd," & _
"12345678abcdabcd," & _
"12345678abcdabcd," & _
"12345678abcdabcd," & _
"12345678abcdabcd," & _
"12345678abcdabcd," & _
"12345678abcdabcd," & _
"12345678abcdabcd," & _
"12345678abcdabcd")

For the IDL DrawX control called from Visual C++, callable IDL must be initialized in embedded license mode prior to the initialization of the IDLDrawWidget. See TechTip 3554 for information on callable IDL licensing.

Step 3: Prepare the application for distribution:
Prepare the application for distribution by following the steps in "Building Your Application" and "Preparing a Distribution" in the Building IDL Applications manual, located in the IDL on-line documentation.

For more information on developing IDL ActiveX controls, please see the External Development Guide in the IDL on-line documentation.

For more information on embedded licensing options, please see TechTip 3552: Licensing options for compiled IDL applications.Solution:
[Edit this field in the IDL-based Tech Tip Editor, v3]

Please login or register to post comments.
Featured

End-of-Life Policy Enforcement for ENVI 5.3 / IDL 8.5 and Earlier Versions

5/6/2024

April 1, 2024 Dear ENVI/IDL Customer,  We are reaching out to notify you of our supported... more »

How to Upgrade licenses to ENVI 6.x / IDL 9.x

12/5/2023

What is the new Upgrade function? Starting with ENVI 6.0 and IDL 9.0, we have implemented an... more »

What to do if the 'License Administrator - License Server' for the Next-Generation License Server does not start?

6/13/2023

Background: With the release of ENVI 5.7 & IDL 8.9 and the corresponding Next-Generation licensing... more »

Next-Generation Licensing FAQ

4/28/2023

  NV5 Geospatial has adopted a new licensing technology for all future releases of our ENVI, IDL... more »

The IDL Virtual Machine

6/6/2013

What is the IDL Virtual Machine? An IDL Virtual Machine is a runtime version of IDL that can... more »