AddressBar

How can I get the current address in the addressbar of the currently running web browser (from a C++ application)
GetzAlonAsked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

GetzAlonAuthor Commented:
Adjusted points to 200
0
nietodCommented:
There is no standard or universal way to do this.  First of all it will depend greatly on the OS you are running.  Second it will depend on which browser you ar running.
0
GetzAlonAuthor Commented:
Im working in windows 95/98, with internet explorer 5.
0
Cloud Class® Course: Microsoft Azure 2017

Azure has a changed a lot since it was originally introduce by adding new services and features. Do you know everything you need to about Azure? This course will teach you about the Azure App Service, monitoring and application insights, DevOps, and Team Services.

jkrCommented:
See http://support.microsoft.com/support/kb/articles/Q176/7/92.ASP

(Q176792 - HOWTO: Connecting to a Running Instance of Internet Explorer)

After having done this, you'll be able to retrieve the current URL using 'IWebBrowser::GetLocationURL()'.


Feel free to ask if you need more information!
0
jkrCommented:
(Ooops, this should have been an answer)

A little correction: The relevant COM object/method is 'IWebBrowser2::get_LocationURL()' (MS likes changes ;-)

See http://msdn.microsoft.com/workshop/browser/webbrowser/reference/ifaces/iwebbrowser2/iwebbrowser2.asp

and http://msdn.microsoft.com/workshop/browser/webbrowser/reference/ifaces/IWebBrowser2/get_LocationURL.asp

in particular...
0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
GetzAlonAuthor Commented:
Tks - Helped me alot!!
0
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
C++

From novice to tech pro — start learning today.