well, in this case you have to add licenses at runtime. see online help for
licenses.add method (in case you use VB6)

Signature
Alex Dybenko (MVP)
http://Alex.Dybenko.com
Hello Brian,
Thank you for using MSDN Newsgroup! My name is Billy and it's my pleasure to assist you
with this issue.
Thanks to Alex's great help on your issue. You can use the licenses.add method to get the
design license, or you can use the utility we provided to fix this design-time license used by
ActiveX controls installed with VB 5.0 or 6.0. See the following article below:
194751 FILE: VB6Cli.exe Fixes License Problems with Visual Basic 6.0
http://support.microsoft.com/?id=194751
For VC++ information, please reference the following KBs:
151771 LICREQST.EXE Requesting a License Key from an Object
http://support.microsoft.com/?id=151771
228530 BUG: Access Violation in Ole32.dll When Creating an ATL Composite Control
http://support.microsoft.com/?id=228530
Brian, does that answer your question? Please apply our suggestions above and let us
know if this helps resolve your problem. If there is anything more we can do to assist you,
please feel free to post it in the group.
Best regards,
Billy Yao
Microsoft Online Support
----------------------------------------------------
Get Secure! - www.microsoft.com/security
This posting is provided "as is" with no warranties and confers no rights.
Please reply to newsgroups only. Thanks.
Brian Abbott - 21 Jan 2004 16:13 GMT
Hi Billy
Well, I tried running vb6cli.exe, but it kept telling me that vb6 runtime
wasn't installed, even after I d/l'd and installed vbrun60.exe to be sure.
In the end I've copied the HKEY_CLASSES_ROOT\Licenses hive in its entirety
from a Win98 PC that works ok and installed it into the defective PC. That
cured it.
Isn't there a simple .reg file available with just the entry that's needed?
Cheers
Brian Abbott
> Hello Brian,
>
[quoted text clipped - 28 lines]
> This posting is provided "as is" with no warranties and confers no rights.
> Please reply to newsgroups only. Thanks.
Brian Abbott - 21 Jan 2004 16:13 GMT
Hi Billy
Well, I tried running vb6cli.exe, but it kept telling me that vb6 runtime
wasn't installed, even after I d/l'd and installed vbrun60.exe to be sure.
In the end I've copied the HKEY_CLASSES_ROOT\Licenses hive in its entirety
from a Win98 PC that works ok and installed it into the defective PC. That
cured it.
Isn't there a simple .reg file available with just the entry that's needed?
Cheers
Brian Abbott
> Hello Brian,
>
[quoted text clipped - 28 lines]
> This posting is provided "as is" with no warranties and confers no rights.
> Please reply to newsgroups only. Thanks.
Matthew Bumgarner [MSFT] - 28 Jan 2004 21:13 GMT
Hello Brian,
I could not find a .reg file to send to you. One thing you may be able to
do is to find out what key is being used when try to instantiate the
control is to download RegMon from http://www.sysinternals.com. Run a
trace on the Windows 98 computer that works while you instantiate the
control. Then run a second trace on the computer where this does not work
while trying to instantiate the control. You can save the traces as text
files and then compare the two and see if that indicates the key with the
problem. Then use the good computer to create a .reg file.
I would also be curious to know if the version of Mscomct2.ocx is different
on the computer where this works and the computer where it does not work.
Thank you, Matt Bumgarner
Microsoft Developer Support for Access
This posting is provided "AS IS", with no warranties, and confers no rights.
Orlanzo Ross - 29 Jan 2004 03:24 GMT
Hi Brian,
In what type of application are you attempting to use this control? Have
you created an Access , FoxPro, or VB Runtime time application? If the
application is packaged using the Packaging Wizard from either Visual Basic
or from a version included with an edition of Office Developer, do you
continue to encounter the licensing error after the packaged has been
deployed on a target machine?
You should also take a look at the following articles:
192693 BUG: License Error with ActiveX Control Added at run-time
http://support.microsoft.com/?id=192693
Kind regards,
Orlanzo Ross
Microsoft Online Support
Brian Abbott - 21 Jan 2004 16:13 GMT
Hi Billy
Well, I tried running vb6cli.exe, but it kept telling me that vb6 runtime
wasn't installed, even after I d/l'd and installed vbrun60.exe to be sure.
In the end I've copied the HKEY_CLASSES_ROOT\Licenses hive in its entirety
from a Win98 PC that works ok and installed it into the defective PC. That
cured it.
Isn't there a simple .reg file available with just the entry that's needed?
Cheers
Brian Abbott
> Hello Brian,
>
[quoted text clipped - 28 lines]
> This posting is provided "as is" with no warranties and confers no rights.
> Please reply to newsgroups only. Thanks.