An interesting question arose concerning ActiveX controls that are ditributed by Visual FoxPro. I've seen this before (UT, Foxite, etc.), so I was wondering if there was anyway you could clear things up.
When an activex control such as the MS MAPIMessage control are instantiated through code, it works just fine on the developer's system, but breaks down when it is installed on the user's system. The message is "Appropriate license for this class not found" on the user's system. It appears that a design-time license is needed instead of a run-time license. It works just fine if the control is placed on a form or a subclass of the OLEControl in a vcx is used.
Here are two related KB Articles:
http://support.microsoft.com/default.aspx?scid=kb;EN-US;Q136638http://support.microsoft.com/default.aspx?scid=kb;EN-US;Q139154Here is the hack:
Re: Cannot create MSMAPI.MAPISession Thread #
1029013 Message #
1029060Here are my thoughts on it and the thread that prompted this question to you:
Re: Outlook MAPI 80040112: Class is not licensed for use Thread #
1034530 Message #
1034540So, is putting the license into a user's registry okay with Microsoft? Any clarification you can provide would be appreciated. The registry change is certainly preferrable to the invisible form, but I get the feeling that there is a reason that MS didn't suggest the registry hack in the KB Articles.