Solved

IWebBrowser and IWebBrowserApp

Posted on 1998-09-03
6
1,141 Views
Last Modified: 2013-12-03
How do I use the IWebBrowser and IWebBrowserApp objects in ActiveX and what files need to be included (header-files) and in the path (dlls and so on)?
0
Comment
Question by:mdoland
  • 2
  • 2
  • 2
6 Comments
 
LVL 8

Accepted Solution

by:
Answers2000 earned 120 total points
ID: 1414199
1. DLL is SHDOCVW.DLL it lives in your Windows\System directory when you install Internet Explorer.  
You should not distribute this DLL with your app, but really on IE being installed.  If you want you can distribute the whole of IE with your app.  (This is Microsoft's license terms, visit their site for more info).
https://ieak.microsoft.com/secure/ie_dist_lda.asp
is a good place to start from for IE distribution stuff

2. Header is EXDISP.H in your VC\INCLUDE directory.  Some additional GUIDs are defined in  SHLGUID.H in your VC\INCLUDE directory.

That's it.  Obvious you need to include normal Windows/COM stuff you use as well into your project.

0
 
LVL 8

Expert Comment

by:Answers2000
ID: 1414200
"but really on IE being installed"
should be
"but rely on IE being installed
0
 
LVL 1

Expert Comment

by:MuraliKrishna
ID: 1414201
Check out the section "Reusing Browser Technology" at
  http://www.microsoft.com/workshop

for details on how to use the IWebBrowser, IWebBrowser2, and IWebBrowserApp interfaces.
IWebBrowser and IWebBrowser2 interfaces belong to the WebBrowser ActiveX control (shdocvw.dll). For a new app, you should not use the older IWebBrowser interface. The IWebBrowserApp interface is the Automation interface that lets you control a separate instance of the Internet Explorer.

Regards,
Murali Krishna Devarakonda
0
Why You Should Analyze Threat Actor TTPs

After years of analyzing threat actor behavior, it’s become clear that at any given time there are specific tactics, techniques, and procedures (TTPs) that are particularly prevalent. By analyzing and understanding these TTPs, you can dramatically enhance your security program.

 

Author Comment

by:mdoland
ID: 1414202
Great!
0
 

Author Comment

by:mdoland
ID: 1414203
What do you mean with 'separate instance' ?


0
 
LVL 1

Expert Comment

by:MuraliKrishna
ID: 1414204
It's OLE Automation. It means that you will have an Internet
Explorer browser running WHICH YOU CAN CONTROL- using the
methods and events of the IWebBrowserApp Interface.

Take a look at the June 1998 issue of Microsoft Interactive
Developer (MIND) at www.microsoft.com/mind for an article(and a
freely downloadable sample program) that demonstrates both these
Interfaces.

BTW, not that I care much about the points, but more as a
question of following a correct protocol, I have a question for
you: Do you realize at least now that you were hasty in
accepting an answer to your question, considering the questions
you're asking AFTERWARDS? It's obvious that the accepted answer
didn't really address the 'essence' of your question, which was
to find out the differences between the IWebBrowser and
IWebBrowserApp interfaces how to use them, while my answer
clearly did.

This happens all too often at EE- people not giving credit where
it's due, but I don't know of many instances where you accept
one person's answer over other's, and then ask followup
questions from the other.

FYI, although EE doesn't yet have a system in place to split
points (which BTW would have been the right thing to do in this
case), in future you can do it by asking Linda to do it by
sending her mail at linda@experts-exchange.com

At least on three occasions (I can give you proof if you insist)
in the last one month or so, I've found my answer- although correct- not accepted perhaps because people didn't know about splitting points, or didn't care or thought that they had the right answer, and then realized that they didn't.

This is a strong dis-incentive to post answers to questions that are 'locked'. The first person to posted a response as an 'answer' locks it, and then you get to accept or reject it, or ask followup questions from all the people who responded, AND THEN assign points to the answer that satisfies you the most, or split points if necessary.

Although in this case, Answers2000 did answer part of your question correctly when he locked it, I often find that someone just 'locks' a question to beat the buzzer without any valid answer.
Speaking for myself, I don't see why I should bother with 'locked' questions because of all the problems I've discussed above. But inspite of everything, the answer is simple. For the same reason I post answers all over the public newsgroups: because I can, because I care, and because I've gained as much- if not more- than I've helped by the whole exchange of information.

Regards,
Murali Krishna Devarakonda

p.s.: Answers2000, please don't take this personally. I have a
lot of respect for you, and absolutely wasn't talking about you
at all in my rantings. I can personally attest to the fact that
you DO NOT engage is 'unethical locking'- you posted comments to
one of my questions, but didn't lock it as an answer!

0

Featured Post

How to improve team productivity

Quip adds documents, spreadsheets, and tasklists to your Slack experience
- Elevate ideas to Quip docs
- Share Quip docs in Slack
- Get notified of changes to your docs
- Available on iOS/Android/Desktop/Web
- Online/Offline

Join & Write a Comment

A theme is a collection of property settings that allow you to define the look of pages and controls, and then apply the look consistently across pages in an application. Themes can be made up of a set of elements: skins, style sheets, images, and o…
Entering time in Microsoft Access can be difficult. An input mask often bothers users more than helping them and won't catch all typing errors. This article shows how to create a textbox for 24-hour time input with full validation politely catching …
This is Part 3 in a 3-part series on Experts Exchange to discuss error handling in VBA code written for Excel. Part 1 of this series discussed basic error handling code using VBA. http://www.experts-exchange.com/videos/1478/Excel-Error-Handlin…
Internet Business Fax to Email Made Easy - With eFax Corporate (http://www.enterprise.efax.com), you'll receive a dedicated online fax number, which is used the same way as a typical analog fax number. You'll receive secure faxes in your email, fr…

747 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

11 Experts available now in Live!

Get 1:1 Help Now