How do i make a webbrowser in VC++ ??? I've been looking but havent found it. ima head over to msdn now but can someone plz help me. Im new to c++ and am trying to learn. Thanks in advance to anyone.
Printable View
How do i make a webbrowser in VC++ ??? I've been looking but havent found it. ima head over to msdn now but can someone plz help me. Im new to c++ and am trying to learn. Thanks in advance to anyone.
check out the htmlview library.
Four ways:
1) Write your own code. This means getting to know the winsock library very well and is in general a LOT of work. But it is the only way you really "create your own browser".
2) Embed IE in your app. A lot of COM, but far less work. MFC does the most work for you if you want to use it.
3) Embed Mozilla. More work than embedding IE, but I like Mozilla better :D. Embedding Mozilla is described at mozilla.org
4) Create your own derivate of Mozilla. There are several projects like this, e.g. Phoenix or Chimera. Much more work than embedding, but much less than writing from scratch.
I can't think of any other ways.
How do i embed IE ?
Don't know. Maybe you find information in MSDN, look for the IWebBrowser2 interface.
One question.
Why? Why bother embedding a *different* browser? You just add another layer of complexity and bloat onto something which is big enough already.
What are you referring to?
IWebBrowser2 is the heart of the Web Browser Control. Embedding means that you have an instance of the browser running inside your app (whichever you choose, the mechanism is the same).
I think I know what I mean :p
Last time I tried to use IE either embedded or otherwise wrapped in another program, it was slower than just running IE on its own.
Some arse deleted IE off my assigned computer one time, so I had to write a freakin web browser in Word o.O
Z.
In what way? With the IE control, or did you go the macho way and interpret the HTML into a formatted Word document? (If you did, you're an official stud :D)
You are kidding right? I wanted to browse the web, you nut! :DQuote:
Originally posted by parksie
In what way? With the IE control, or did you go the macho way and interpret the HTML into a formatted Word document? (If you did, you're an official stud :D)
Z.
Well, I dunno. If you didn't have IE, then what else are you going to do if there's no page layout/rendering software available?
They only deleted IE itself, not the control, so I could use that ;)
Z.
I thought you mean IE itself, which *is* the control. iexplore.exe is just a wrapper round it.
But aaaaaaanyway. Upshot, MS still suck. :p
You know EditPlus? Nice little code editor, extensible and very cool. Comparable to UltraEdit.
EditPlus is an MFC app originally created for editing HTML, and so the author decided to embed IE. Just hit Ctrl+B when you have an open HTML file and it will launch IE inside the editor (as another document) and browse to the page.
Really nice.
Yes MS sucks, but embedded browsers are nice to have.
Embedding a page renderer is ok, but when you can't extract that from the rest of the browser framework it slows it down a lot. I can see it being useful, though.
You can turn it around. Write an application based on the Mozilla framework, ith XUL, CSS and JavaScript.
Yeah. Like Phoenix, Galeon, etc.
I mean like chatzilla, mozilla mail...