LabWindows™/CVI™ Shows ActiveX Control is not Licensed for this Operation

Updated Sep 27, 2024

Reported In

Software

  • LabWindows/CVI

Issue Details

I have encountered the following errors when I am trying to call Microsoft Rich Textbox Control from RICHTXT32.ocx by using LabWindows™/CVI™ 2019. How should I resolve this issue?

NON-FATAL RUN-TIME ERROR
"MainForm.c".line 141, col 21, thread id 6384

Function LoadPanel: (return value == -168 [0xffffff58]).
ActiveX control is not licensed for this operation




LabWindows/CVI Message
ActiveX control is not licensed for this operation.



 

Solution

This issue can be resolved by:
  • Ensure the version of LabWindows™/CVI™ you are using is compatible with your computer's Operating System.
  • Ensure LabWindows™/CVI™ has been activated successfully.
  • Ensure the ActiveX control has been registered with the operating system.
  • Ensure Visual Studio has been installed on the development computer.

Additional Information

Note that ActiveX controls can have both Design-Time and Runtime-Time licensing. Apparently, the licensing associated with this control is checking whether Microsoft IDEs such as Visual Studio is installed. If not, when CVI ADE tries to create the ActiveX object, a CLASS_E_NOTLICENSED error is returned, which then triggers the error popup saying "ActiveX control is not licensed for this operation".