Reply to comment

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.

Reply

The content of this field is kept private and will not be shown publicly.
  • Allowed HTML tags: <a> <em> <strong> <cite> <code> <ul> <ol> <li> <dl> <dt> <dd>
  • You can enable syntax highlighting of source code with the following tags: <code>, <blockcode>, <java>, <powershell>, <tsql>, <visualfoxpro>. The supported tag styles are: <foo>, [foo].
  • Lines and paragraphs break automatically.
  • Web page addresses and e-mail addresses turn into links automatically.

More information about formatting options

CAPTCHA
This question is for testing whether you are a human visitor and to prevent automated spam submissions.
Image CAPTCHA
Enter the characters shown in the image.