0
votes

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 embeded 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.

2

2 Answers

1
votes

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?

1
votes

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.