Simple C++ Web Browser

All tutorials created in C++ to be posted in here.
5 posts Page 1 of 1
Contributors
User avatar
Nery
Co-Admin Moderator
Co-Admin Moderator
Posts: 1117
Joined: Mon Sep 07, 2009 8:11 pm

Simple C++ Web Browser
Nery
Finally managed to finish a simple web browser with the Back, Forward, Navigate without any tutorials or references.

Here's the outcome screenshot:
screenie!.PNG
As shown in the screenshot above you'll need 3 buttons.
Change the names as bellow:
Button1 -> Back
Button2 -> Forward
Button3 -> Navigate

1 Textbox, call it txtURL
and 1 Webbrowser, leave its name as webBrowser1.

In the Back button place this code:
Code: Select all
this->webBrowser1->GoBack();
In the Forward button:
Code: Select all
this->webBrowser1->GoForward();
In the Navigate button:
Code: Select all
this->webBrowser1->Navigate(textBox1->Text);
In the webbrowser's DocumentCompleted (just double tap it in the designer):
Code: Select all
this->Text = webBrowser1->DocumentTitle;

NOTES:
"this->" stands for "Me." in vb.net
The whole code in Visual C++ is CaSe SeNsItIvE
Be sure you always add a ";" in the end of each code line
C++ is a total pain so be sure you are mentally ready if you want to get in touch with monster.
You do not have the required permissions to view the files attached to this post.
User avatar
zachman61
VIP - Donator
VIP - Donator
Posts: 1891
Joined: Wed Dec 16, 2009 9:56 pm

Re: Simple C++ Web Browser
zachman61
thanks
Nailing my feet to the floor is easier than using my own muscles to balance, but you don't see me doing that :)
User avatar
MrAksel
C# Coder
C# Coder
Posts: 1758
Joined: Fri Mar 26, 2010 12:27 pm

Re: Simple C++ Web Browser
MrAksel
Hehe, thanks for the tutorial I really needed it. I am trying to learn C++, but it is really confusing. Please post more tutorials! That would be great!
LMAOSHMSFOAIDMT
Laughing my a** of so hard my sombrero fell off and I dropped my taco lmao;


Over 30 projects with source code!
Please give reputation to helpful members!

Image
Image
User avatar
zachman61
VIP - Donator
VIP - Donator
Posts: 1891
Joined: Wed Dec 16, 2009 9:56 pm

Re: Simple C++ Web Browser
zachman61
C++ doesn't seem to different from vb so far but it is i know
Nailing my feet to the floor is easier than using my own muscles to balance, but you don't see me doing that :)
User avatar
Alex
Member
Member
Posts: 40
Joined: Mon Feb 01, 2010 8:17 pm

Re: Simple C++ Web Browser
Alex
This is totally different from what I do. o_o
(C++ Win32) I actually have to write the code to create the window!

Nice tutorial by the way.
<?php

$wants_to_make_guide_today = true;
if($wants_to_make_guide_today == true){
make_guide();
}else{
sleep();
}
?>
5 posts Page 1 of 1
Return to “C++ Tutorials”