user386167
user386167

Reputation:

Get current request path from ActiveX control in VB6

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.

Upvotes: 0

Views: 346

Answers (2)

Bob77
Bob77

Reputation: 13267

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?

Upvotes: 1

Alex K.
Alex K.

Reputation: 175816

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.

Upvotes: 1

Related Questions