is there a way to get the current request path from an ActiveX control in VB6? I am wondering if VB6 has something similar to Request.Path in VB.NET.
The control is e开发者_高级运维mbeded in an HTML page using the OBJECT tag. I guess I could pass the current request path through PARAMs, but I just wanted to hear other options. Many thanks.
Sounds pretty simple if what you are after is the URL of the control's hosting page.
Have you tried Parent.URL
or Parent.URLUnencoded
yet?
The ActiveX component can call across IOleClientSite::GetMoniker
to do this, however this is difficult with VB6, you would need a custom type library implementing the interface at the very least.
精彩评论