Re: Control problem

Tech-Archive recommends: Repair Windows Errors & Optimize Windows Performance

From: MikeD (nobody_at_nowhere.edu)
Date: 08/14/04


Date: Sat, 14 Aug 2004 09:20:11 -0400


"Ivan Debono" <ivanmdeb@hotmail.com> wrote in message
news:%23LYClJcgEHA.904@TK2MSFTNGP09.phx.gbl...
>
> I've compiled a control with 'Requires license key' option checked. A VBL
> file created and everything worked fine. Now I decided that I don't want
to
> use licensing so I unchecked the option and compiled the control.
>
> Now my problem is that when I run the program I get an error that a
license
> key is required.

Does your control use any constituent controls that require a license key
AND are you adding your control dynamically? If the answer to both those
questions is "yes", then your control must require a license key. You
should be able to manually add the license key to the Licenses collection if
you want. See the following:

INFO: Licensing Issues Related to User Controls Created with Visual Basic
http://support.microsoft.com/default.aspx?scid=kb;en-us;274754&Product=vb6

If the answer to either or both questions is "no", then I don't have any
definite suggestions. You might have to turn binary (or project)
compatibility off, recompile, and then set binary compatibility again.
That's just a guess. More information would be helpful, such as what
constituent controls you're using, how your control is used (placed on a
container or dynamically added, for example), and the exact error message
and number.

Other articles that may be insightful:

PRB: Can't Create VB ActiveX Control with Embedded Licensed Ctrl
http://support.microsoft.com/default.aspx?scid=kb;en-us;175325&Product=vb6

HOWTO: What is the Licenses Collection Used For?
http://support.microsoft.com/default.aspx?scid=kb;en-us;188577&Product=vb6

INFO: Dynamically Add UserControls That Require Run-Time Licenses
http://support.microsoft.com/default.aspx?scid=kb;en-us;241126&Product=vb6

FIX: Cannot Dynamically Add a Non-Licensed MFC Control
http://support.microsoft.com/default.aspx?scid=kb;en-us;193025&Product=vb6

You might want to search the KB yourself, as there are a few more issues
related to ActiveX controls and licensing.

Mike



Relevant Pages

  • Re: Fujitsu support - need help - Netcobol for windows and licensed controls.
    ... Power COBOL V7, 3rd party OCX control, properly licensed. ... as it is basically distibuiting the development license. ... development license key, while the "License.dat" file seems to be the deployment ... IClassFactory and IClassFactory2 are *interfaces* ...
    (comp.lang.cobol)
  • Re: Calendar view
    ... If you can find a copy of Visual Studio 6 (which includes VB6 and C++, ... etc) and install that then you will automatically get the License. ... this is exactly the type of control I was looking for. ... "You don't have the license required to use this ActiveX control ...
    (microsoft.public.access.forms)
  • Re: Fujitsu support - need help - Netcobol for windows and licensed controls.
    ... Power COBOL V7, 3rd party OCX control, properly licensed. ... as it is basically distibuiting the development license. ... is down to the third party supplier to provide a run time license file (or ... It is up to the container to see if it ...
    (comp.lang.cobol)
  • [very long report] my theory and practical tests
    ... I then went on and at 18 I got my car license, ... easy if you are familiar with clutch and gears on a bike, ... Shoulder checks and low speed control: ... *rear brake only* after the midpoint because the ...
    (uk.rec.motorcycles)
  • Re: You dont have the license required to use this ActiveX control
    ... in order to insert such control intoform you should have a design license ... > " You don't have the license required to use this ActiveX Control. ...
    (microsoft.public.access.devtoolkits)