Appropriate license for this class not found error at runtime

Code that runs fine in development may generate Appropriate license for this class not found (OLE error code 0x80040112)

at run-time.

There are two types of licenses for ActiveX controls - development and run-time. See INFO: OLE Control Licensing in Visual FoxPro for more information. When ActiveX control is instantiated with CREATEOBJECT()/NEWOBJECT() functions or ADDOBJECT()/NEWOBJECT() methods, the development license is used. However such license is only available on the PC where VFP is installed. Running the code on PC w/o VFP installed will generate Appropriate license for this class not found (OLE error code 0x80040112)

.
In order to provide a run-time license for an ActiveX control, the control has to be subclassed in a visual class library (.VCX) and subclass used in the CREATEOBJECT()/NEWOBJECT() functions or ADDOBJECT()/NEWOBJECT() methods.

Comments