943,962 Members | Top Members by Rank

Ad:
  • C++ Discussion Thread
  • Unsolved
  • Views: 41794
  • C++ RSS
Jun 29th, 2007
0

C++ Web Browser

Expand Post »
I'm not sure how to do this, but i'm making a small shell in C++ in command line, with a few external scripts and executables being called. What I want to do is either make a simple web browser or a way to show web pages in C++, or if anyone can make one, or use a prebuilt small simple one file browser and figure a way to make it open pages. I just don't want to use the users default browser, as well as i want to be able to bundle it with the other files when i want to finish the project... what do you all suggest to go about doing this????
Reputation Points: 10
Solved Threads: 0
Newbie Poster
codercpp1 is offline Offline
4 posts
since Jun 2007
Jun 29th, 2007
-1

Re: C++ Web Browser

Here is one of several examples I found with google.
Sponsor
Team Colleague
Featured Poster
Reputation Points: 5608
Solved Threads: 2282
Retired and Enjoying Life
Ancient Dragon is offline Offline
21,953 posts
since Aug 2005
Jun 29th, 2007
1

Re: C++ Web Browser

Well... i'm really new to c++ though so i don't quite understand what to do. I've tried to make the code example into a displayhtml.exe , but i don't have that htmlwindow.h that it calls to... and don't know where to get it. uggh. its frusterating. i need more of a simple little walk through just for getting a simple browser running, or something. sorry.
Reputation Points: 10
Solved Threads: 0
Newbie Poster
codercpp1 is offline Offline
4 posts
since Jun 2007
Jun 29th, 2007
-1

Re: C++ Web Browser

Creating a web browser, especially in c++, is not an exercise newbies should be attempting.
Featured Poster
Reputation Points: 1536
Solved Threads: 431
Posting Expert
iamthwee is offline Offline
5,865 posts
since Aug 2005
Jun 29th, 2007
-1

Re: C++ Web Browser

mmk... i found a stand alone version... small app called K-Meleon that i can call to with an extended attribute for the web page i want. thx anyway.
Reputation Points: 10
Solved Threads: 0
Newbie Poster
codercpp1 is offline Offline
4 posts
since Jun 2007
Jun 29th, 2007
1

Re: C++ Web Browser

If you are still interested a few things you could do / should do.

get an XML Parser and treat all pages like XML, since HTML follows a strict coding format (or at least properly built pages do) you could easily build a parser using an XML tool.

Secondly since it is going to be command line i am assuming no reason for graphics, so again it's just a matter of parsing the text and other style/placements

but then you get into the issue of the Styles.

because the grounds on how each browser displays is so poorly implimented by each side (microsoft,firefox,safari...etc) it would be in your best interest to look up the DOM (document object model) as well as http://www.w3.org/ as they are the people that set forth the guidlines.
Reputation Points: 152
Solved Threads: 39
Master Poster
Killer_Typo is offline Offline
778 posts
since Apr 2004
Jul 21st, 2007
0

Re: C++ Web Browser

I want to make a Web browser with c++ within two days. How should i make it
Reputation Points: 10
Solved Threads: 0
Newbie Poster
suraj_1470 is offline Offline
1 posts
since Jul 2007
Jul 21st, 2007
0

Re: C++ Web Browser

Click to Expand / Collapse  Quote originally posted by suraj_1470 ...
I want to make a Web browser with c++ within two days. How should i make it
Two Days

If you use VC++ 6.0 compiler it has CHTMLView that is a web browser which you can implement in just a few minutes. Not sure if VC++ 2005 has it or not, but I suspect it does.

Otherwise -- read the previous posts to this thead and the links they contain!
Sponsor
Team Colleague
Featured Poster
Reputation Points: 5608
Solved Threads: 2282
Retired and Enjoying Life
Ancient Dragon is offline Offline
21,953 posts
since Aug 2005
Jul 21st, 2007
0

Re: C++ Web Browser

it does but im not sure about express (express doesnt do MFC so some of the GUI stuff is iffy)
Moderator
Featured Poster
Reputation Points: 1784
Solved Threads: 575
Moderator
jbennet is online now Online
16,520 posts
since Apr 2005
Mar 15th, 2011
-1
Re: C++ Web Browser
to create a browser in c++ is not a esay task but what you need is to break the task in small parts.such as make the window,code to read html,and the userinterface. that how i create a simple one.
Reputation Points: 10
Solved Threads: 0
Newbie Poster
suedormo is offline Offline
2 posts
since Mar 2011

This thread is more than three months old

No one has posted to this discussion for at least three months. Please let old threads die and do not reply to them unless you feel you have something new and valuable to contribute that absolutely must be added to make the discussion complete. Otherwise, please start a new thread in this forum instead.
Message:
Previous Thread in C++ Forum Timeline: Joseph's Problem
Next Thread in C++ Forum Timeline: Another sorting array issue..





About Us | Contact Us | Advertise | Acceptable Use Policy
Forum Index | Build Custom RSS Feed


Follow us on Twitter


© 2011 DaniWeb® LLC