Im using MS Visual C++ 6, I was wondering how to make a web browser using mozilla rendering engine. Please post how or links to tutorials, thanks,
Kwake40
Printable View
Im using MS Visual C++ 6, I was wondering how to make a web browser using mozilla rendering engine. Please post how or links to tutorials, thanks,
Kwake40
Do you have even the littlest bit of an idea of how complicated a browser is?
Well, Ive looked at the FireFox source, and Ive made a few with VB6
Well looks like you know how to find the answer to your own question then.
I dont get it, VB6 is completely diff from C++
So what's your question?
Are you here to learn C++ or just here to make random comments about how easy it is to plug together a few bits of lego software (aka VB6) to create simple browsers?
If you're just starting C++, then you're at least 6 months away from making competent changes to source code of any decent browser. Most people start with "hello world" and work their way through books, excercises and tutorials before jumping headlong into some significant application.
but ive been using C++ for quite awhile, but im self taught, no college or anything
I'm pretty sure that HTML-Kit did this once. The thing is, it was reliant on having a particular version of Mozilla installed.
wut the man means is that he made a broswer using vb but now hes using c++ but c++ is alot more difficult so he needs help with it
so NO hes not just making random comments
Sometimes, it's just like trying to strap jet engines to a 5 year old's paper aeroplane.
The hardest leasons to learn are sometimes the ones you need to learn on your own.Quote:
Originally Posted by Salem
Quote:
Originally Posted by lilhawk2892
If he's made a browser in VB, then I'll hazard a guess that he's used an embedded IE web-browser control - which will work the same (with a little more tweaking in C++). As far a firefox goes - it depends if they allow you to reuse thier code by way of a control or a library.
If he's adept enough to read, parse and render HTML, then he isnt going to ask a question like this in the first place
Just for the record, i used the Gecko Engine, which is actually the same as Mozilla,Quote:
Originally Posted by Fordy
Thanks alphaoide, ill try it out, just posting that link has been the most helpful thing
Make a web browser eh. I've just about heard everything.
It's actually simple to decode the HTML to create a page if you know HTML, which I gather you may or may not. But as for downloading from FTPs, HTTPs, uploading, streaming, etc, etc. A web browser is not a good first C++ project and since web browsers are like butholes, everyone seems to have one yet in some way they all stink, I would venture to say it's a waste of time.
In ur opinion, anyway, can anyone just post a link to a straight out tutorial to make a browser with any type of engine, I would just keep the VB6 browser, but I have some code for some cool things in a web browser, but there for c++ and i dont know how to make the general things, like back foward stop, etc
Which you don't know how to use. I don't know if you are understanding but C++ is about ten million times more complex and powerful than VB6 and you can't just cut and paste your way to a web browser. If you want to mix VB6 and C code without .NET then good luck because it's not fun. It's possible, but not fun.Quote:
but I have some code for some cool things in a web browser, but there for c++ and i dont know how to make the general things, like back foward stop, etc
And besides if you don't understand how C/C++ stores variables, acts on variables, or uses them then how can you hope to mix the two. You need way more knowledge than just cutting and pasting.
And the whole I have code for cool things but they are for C++ sounds suspiciously like you stole them which is obvious since you don't know how to use them, don't know exactly what they do since you don't know C++, etc., etc.
So what do these cool things do? How do you know if you don't understand C++. Your argument is very circular. Go cut and paste your way to another forum if you don't like what we have to say about true C/C++ programming.
come on, anyone, pwweeeeeeeezzeee
WHAT?? Care to rephrase that?Quote:
It's actually simple to decode the HTML to create a page if you know HTML, which I gather you may or may not. But as for downloading from FTPs, HTTPs, uploading, streaming, etc, etc. A web browser is not a good first C++ project and since web browsers are like butholes, everyone seems to have one yet in some way they all stink, I would venture to say it's a waste of time.
To create an HTML parser would not be that difficult. Although I hate programming any type of parser it still would not be that hard. Everything in HTML is the <> </> variety and so it would be easy to see where one block starts and one ends. All you would do is get an HTML book and see what each command or keyword does specifcially and all options that can be associated with it and begin coding your parser. Doesn't sound like fun, but it can be done.
A recursive descent parser could do the trick for the most basic web pages. It's no different than creating a utility that allows you to create a web page in a GUI and then creates the HTML for it. Same process just the reverse.
But it's not good for a first time C++ project nor a fiftieth project. It would take a lot of time and effort. But it's no different than coding say an assembler or disassembler, just a different language and different codes.
Besides most games have more scripting ability than HTML and they code that type of stuff everyday in the games industry. Games rely on scripts to make the game what it is. So let's not overstate the task here, but it's obvious that the OP is not ready to take on this task.
It's not the parsing that is hard, it's the rendering. A HTML rendering engine is one of the more complex programs that exist.