Jump to content
  • Advertisement
Sign in to follow this  
Sfpiano

Creating a basic web browser

This topic is 4847 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

I decided for my next little project it might be fun to create a web browser; however I'm not exactly sure where to start. Would I have to parse the HTML myself and go from there?

Share this post


Link to post
Share on other sites
Advertisement
I don't want to use VB, because that does everything for you; besides I haven't used that in years. The point of this exercise for me is to learn how things work, not to throw something together. If I wanted that, I would just create an MFC app using CHtmlView.

Share this post


Link to post
Share on other sites
Fair enough. Have you considered trying to write your own HTML engine or are you just looking to use MSHTML?

Share this post


Link to post
Share on other sites
It depends on what you want to learn. Are you trying to learn what data passes between the client/server? Use some sort of socket, not a library to do it for you. Are you trying to learn how to display HTML? Then again, don't use a library for it.

I'm not sure what aspects you're trying to get a learning experience out of. That should really make up your mind whether you should parse HTML and such, as you asked.

Share this post


Link to post
Share on other sites
I guess I start with parsing html. My question is how I'd start that, the actual process of turning html into something on screen.

Share this post


Link to post
Share on other sites
Well, I can't give the exact low down on how to do that, but if you know HTML, it shouldn't be a problem. Look at a part of HTML, and ask yourself what does that do? Once you know what it does think about different ways you could make it happen. Say it's a center tag. Find out how many characters can fit into a row on the screen. Subtract the number of characters that needs to be centered. Then divide by 2 and that will be how much space you need to tab over before you output that text. Following me?

Share this post


Link to post
Share on other sites
Quote:
Original post by Sfpiano
I guess I start with parsing html. My question is how I'd start that, the actual process of turning html into something on screen.


I'm by no means trying to bash you, but if you dont atleast have a vague idea of where to begin then I believe your being a little to ambitious. I only say this because a few years ago when I was first learning windows api I thought the same thing. I quickly learned it was out of my current scope, so I worked on smaller less ambitious projects. Now I have a partially complete html parsing class. Only partially complete because I only work on it like once a month if that. :D I have been working on my own game engine primarily.

Share this post


Link to post
Share on other sites
Sign in to follow this  

  • Advertisement
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

We are the game development community.

Whether you are an indie, hobbyist, AAA developer, or just trying to learn, GameDev.net is the place for you to learn, share, and connect with the games industry. Learn more About Us or sign up!

Sign me up!