How To Tie ActiveX Controls to a Specific Domain (196061)
The information in this article applies to:
- Microsoft Internet Explorer (Programming) 4.0
- Microsoft Internet Explorer (Programming) 4.01
- Microsoft Internet Explorer (Programming) 4.01 SP1
- Microsoft Internet Explorer (Programming) 5
- Microsoft Internet Explorer (Programming) 5.5
This article was previously published under Q196061 SUMMARY
When you create an ActiveX control for use under Internet Explorer, you
might want to have your controls only function when they are being hosted
on a Web page in a specific domain. For instance, you might want to protect
your control from being reused without your permission.
This article provides Visual C++ sample code to demonstrate how to
determine the domain that your control is running under.
REFERENCES
For an alternate approach that is compatible with Internet Explorer 3. x,
please see the following article in the Microsoft Knowledge Base:
181678 How To Retrieve the URL of a Web Page from an ActiveX Control
Component Development in the MSDN Online Web Workshop
(c) Microsoft Corporation 1998, All Rights Reserved. Contributions by Scott Roberts, Microsoft Corporation.
Modification Type: | Minor | Last Reviewed: | 7/13/2004 |
---|
Keywords: | kbcode kbCtrl kbhowto KB196061 |
---|
|