开发者

Get current request path from ActiveX control in VB6

开发者 https://www.devze.com 2023-04-03 10:43 出处:网络
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.

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.

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号