HOWTO: Using Licensed ActiveX Controls in Internet Explorer
ID: Q159923
|
The information in this article applies to:
-
Microsoft Internet Explorer (Programming) versions 3.0, 3.01, 3.02, 4.0, 4.01, 5.0
-
Microsoft Internet ActiveX Controls, version 1.0
on the following platforms: x86
SUMMARY
A licensed ActiveX control does not load properly in an Internet Explorer
HTML page if the computer is not licensed to use the control. For example,
if you use Visual C++ to build the control, the HTML page loads with the
control on the computer where it was built, but it does not load on a
different computer.
MORE INFORMATION
To use licensed controls in an HTML page on a non-licensed computer, you
must generate a license package file (LPK). The LPK file contains the
runtime licenses for licensed controls in the HTML page. Lpk_tool.exe,
which comes with the Internet Client SDK, generates this file. You can
download the Internet Client SDK through the following Microsoft Web site:
http://msdn.microsoft.com/downloads/tools/lpktool/lpktool.asp
To embed a licensed control on an HTML page, follow these steps:
- Run Lpk_tool.exe on a computer that is licensed to use the control.
- Highlight each licensed ActiveX control that you want to use on the HTML
page and click Add.
- Click Save & Exit, and then type a name for the LPK file.
- In the HTML page, insert an <OBJECT> tag for the License Manager object
before any other <OBJECT> tags. The License Manager is an ActiveX
control that is installed with Internet Explorer. You set the "LPKPath"
property of the License Manager object to the path and name of the LPK
file. This path may be a relative path but must not refer to a UNC share
or URL on another domain. You can only have one LPK file per HTML page.
For example:
<OBJECT CLASSID = "clsid:5220cb21-c88d-11cf-b347-00aa00a28331" VIEWASTEXT>
<PARAM NAME="LPKPath" VALUE="relative URL to .LPK file">
</OBJECT>
NOTE: You must use the same CLASSID for all your ActiveX controls. This CLASSID is for the License Manager. It is not for your ActiveX control.
- Insert the <OBJECT> tag for your licensed control afterwards. For
example, an HTML page that displays the Microsoft Masked Edit control
looks like this:
<OBJECT CLASSID="clsid:5220cb21-c88d-11cf-b347-00aa00a28331" VIEWASTEXT>
<PARAM NAME="LPKPath" VALUE="maskedit.lpk">
</OBJECT>
<OBJECT CLASSID="clsid:C932BA85-4374-101B-A56C-00AA003668DC"
WIDTH=100 HEIGHT=25 VIEWASTEXT>
</OBJECT>
Before you use a licensed control in a Web page, please verify the
following:
- You must verify that you have a redistribution license for the control.
- You must verify that the license permits use on the Internet.
- If you supply a CodeBase parameter, you must verify that its use is
allowed by your license agreement. In the case of some controls, you
must refer to the developers site for software download.
Please consult the license agreement for the control in question to answer
these questions. The term "All Rights Reserved" means that you only have
permission to do what is explicitly stated. Any activity not allowed (or
vague) in the license agreement is a possible license violation.
NOTE: ActiveX controls that come with Visual C++ and Visual Basic are also
licensed controls. Follow the steps above to use them on an HTML page.
REFERENCES
Internet Client SDK, Component Development/ActiveX Controls/Licensing
ActiveX Controls
Additional query words:
msmask32.ocx grid32.ocx
Keywords : kbtool kbActiveX kbIE300 kbIE301 kbIE400 kbIE401 kbIE302 kbIE500 kbIEFAQ
Version : WINDOWS:1.0,3.0,3.01,3.02,4.0,4.01,5.0
Platform : WINDOWS
Issue type : kbhowto