How To Retrieve the URL of a Web Page from an ActiveX Control (181678)
The information in this article applies to:
- Microsoft Internet Explorer (Programming) 3.0
- Microsoft Internet Explorer (Programming) 3.01
- Microsoft Internet Explorer (Programming) 3.02
- Microsoft Internet Explorer (Programming) 4.0
- Microsoft Internet Explorer (Programming) 4.01
- Microsoft Internet Explorer (Programming) 5
- Microsoft Internet Explorer (Programming) 5.5
This article was previously published under Q181678 SUMMARY
This article demonstrates how an ActiveX control can retrieve the Uniform
Resource Locator (URL) of the Web page (document) on which it is being
hosted.
This may be useful for restricting usage of an ActiveX control to a
particular domain/site or accessing files when supplied a relative path.
REFERENCES
For more information on the IOleObject, IoleClientSite, and IOleContainer
interfaces, please refer to the Microsoft Visual C++ online help.
(c) Microsoft Corporation 1998, All Rights Reserved. Contributions by Mark
Davis, Microsoft Corporation
Modification Type: | Minor | Last Reviewed: | 7/15/2004 |
---|
Keywords: | kbhowto KB181678 |
---|
|