Jul 26, 2008

Web Browser - I created one and it sucks...

Free Web Hosting, No Ads > CONTRIBUTE > Computers > Programming Languages > C/C++ Programming

free web hosting

Web Browser - I created one and it sucks...

Someone
I can really say that browser that I have created sucks, I don't know how to create uncoding, font, should I use windows font from windows directory or what?
Almost all pages don't want to open corectly or don't want at all, please help, I need to solve uncoding
file-new page
file save page
and so
download ofkors
please give me some examples of doing this just a few one
thanks
this is the code:

//----------------------------------------------------------------------------
//Broko Browser Created by Someone(SmartPortal)
//----------------------------------------------------------------------------
//---------------------------------------------------------------------------
#include <vcl\vcl.h>
#pragma hdrstop

#include "main.h"
#include "DocSrc.h"
//---------------------------------------------------------------------------
#pragma resource "*.dfm"
TForm1 *Form1;
//---------------------------------------------------------------------------
__fastcall TForm1::TForm1(TComponent* Owner)
: TForm(Owner)
{
}
//---------------------------------------------------------------------------
void __fastcall TForm1::HTML1EndRetrieval(TObject *Sender)
{
CancelBtn->Enabled = True;
}
//---------------------------------------------------------------------
void __fastcall TForm1::HTML1BeginRetrieval(TObject *Sender)
{
CancelBtn->Enabled = True;
}
//---------------------------------------------------------------------
void __fastcall TForm1::Exit1Click(TObject *Sender)
{
Close();
}
//---------------------------------------------------------------------
void __fastcall TForm1::DocumentSource1Click(TObject *Sender)
{
DocSourceFrm->Show();
DocSourceFrm->Memo1->Lines->Clear();
DocSourceFrm->Memo1->Lines->Add(HTML1->SourceText);
DocSourceFrm->Memo1->SelStart = 0;
SendMessage((HWND)DocSourceFrm->Memo1->Handle, EM_SCROLLCARET, 0, 0);
}
//---------------------------------------------------------------------
void __fastcall TForm1::CancelBtnClick(TObject *Sender)
{
HTML1->Cancel("test");
CancelBtn->Enabled = True;
}
//---------------------------------------------------------------------
void __fastcall TForm1::GoButtonClick(TObject *Sender)
{
if(URLs->Items->IndexOf(URLs->Text) == -1 )
URLs->Items->Add(URLs->Text);
HTML1->RequestDoc(URLs->Text);
Statusbar1->Panels->Items[0]->Text = HTML1->RequestURL;
}
//---------------------------------------------------------------------

void __fastcall TForm1::URLsKeyPress(TObject *Sender, Char &Key)
{
if(Key == VK_RETURN) GoButtonClick(Sender);
}
//---------------------------------------------------------------------

 

 

 


Reply

LuciferStar
I've made one.
I want to know how to do others, too!
in VC++6.0,just addon an IE plugin,then add some codes like this:
CODE
void CIEDlg::OnButton2()
{
// TODO: Add your control notification handler code here
m_IE.GoBack();
}

void CIEDlg::OnButton3()
{
// TODO: Add your control notification handler code here
m_IE.GoForward ();
}

void CIEDlg::OnButton4()
{
// TODO: Add your control notification handler code here
m_IE.GoSearch ();
}

void CIEDlg::OnButton6()
{
// TODO: Add your control notification handler code here
m_IE.Stop ();
}

void CIEDlg::OnButton7()
{
// TODO: Add your control notification handler code here
m_IE.GoHome ();
}

void CIEDlg::OnButton8()
{
// TODO: Add your control notification handler code here
COpenUrl OURL;
OURL.m_URL="http://";
if(OURL.DoModal() == IDOK)
{
 SetDlgItemText(IDC_STATIC1,OURL.m_URL);
 m_IE.Navigate(OURL.m_URL,0,NULL,NULL,NULL);
}
}

void CIEDlg::OnButton5()
{
// TODO: Add your control notification handler code here
m_IE.Refresh();
}

 

 

 


Reply

Someone
QUOTE(LuciferStar @ Jan 25 2005, 11:45 AM)
I've made one.
I want to know how to do others, too!
in VC++6.0,just addon an IE plugin,then add some codes like this:
CODE
void CIEDlg::OnButton2()
{
// TODO: Add your control notification handler code here
m_IE.GoBack();
}

void CIEDlg::OnButton3()
{
// TODO: Add your control notification handler code here
m_IE.GoForward ();
}

void CIEDlg::OnButton4()
{
// TODO: Add your control notification handler code here
m_IE.GoSearch ();
}

void CIEDlg::OnButton6()
{
// TODO: Add your control notification handler code here
m_IE.Stop ();
}

void CIEDlg::OnButton7()
{
// TODO: Add your control notification handler code here
m_IE.GoHome ();
}

void CIEDlg::OnButton8()
{
// TODO: Add your control notification handler code here
COpenUrl OURL;
OURL.m_URL="http://";
if(OURL.DoModal() == IDOK)
{
 SetDlgItemText(IDC_STATIC1,OURL.m_URL);
 m_IE.Navigate(OURL.m_URL,0,NULL,NULL,NULL);
}
}

void CIEDlg::OnButton5()
{
// TODO: Add your control notification handler code here
m_IE.Refresh();
}

*




I don't have vc and I don't like IE biggrin.gif

Reply



Got an Opinion! Express your Views! (no registration):-
Add your Reply/ Opinion/ Views/ Comments/ Suggestion/ Questions/ Queries etc.
Posts with decent grammar & English will be accepted and please refrain from profanities.
For asking a Question, We recommend you to sign-up (for free) so that you can track the topic easily.

Nature of your Post*: Opinion/ Reply/ Comments
Question/Query
Feedback to us.
       
Name   Email
Title/Question*

(Maximum characters: 10,000)
You have characters left.
Confirm Code:

Similar Topics

Keywords : web browser created sucks


    Looking for web, browser, created, sucks

Searching Video's for web, browser, created, sucks
advertisement



Web Browser - I created one and it sucks...



 

 

 

 

ADD REPLY / Got an Opinion! Remove these ADs! RAPID SEARCH! Free Web Hosting [X]
Express your Opinions, Thoughts or Contribute more info. to help others.
Ask your Doubts & Queries to get answers, So that "Together We can help others!"
Register FREE for AD-FREE forum, Create your own topics, Ask Questions, track topics, setup subscriptions & notifications and Get a Free Website w/ Email and FTP.
500MB Space *No Ads*, CPanel, FTP, PHP, MySQL, EMails - 100% FREE