Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

2 related questions to C++ and Internet Explorer

Status
Not open for further replies.

MinnisotaFreezing

Programmer
Jun 21, 2001
120
KR
The first I think is easier.

I have been learning about IHTMLDocument2 and collections, and it works fine if I spawn the web page from my C++ program, and have a handle to it, or the IDispatch, I'm not sure what you call it. What I would like to do is simply click on a IE window, and in on click grab a handle to the window, then creat the IDispatch, then populate IHTMLDocument2, and do something simple, like get the url. Could anyone give me some tips, or link to a resource that explains this a bit?

My second question I think is a bit harder. Like I said, if I spawn a page, I can then manipulate it, get info and post info to the page. What I really want to do is spawn a page that uses ActiveX to display WMP 7.0 media content, and then progromatically get the source of that content. I'm ok all the way up to getting the source of the file. I have exausted all IHTML objects, none of them did what I was looking for, although I got results from them, it just wasn't what I was looking for. I've started looking at WMP objects, but I wouldn't know how to go from an IHTML object to a WMP object. Am I calling these right? Is IHTMLDocument2 an object, or and interface, or an OLE or COM component?

Thanks for your time, sorry for general questions, as you can tell I'm just starting to learn this kind of programming.

One last question, I'm using VS 6.0. Would .NET make things like this easier on me? I have a feeling this kind of programming was exactly what MS had in mind when they developed .NET

Thanks again
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top