Article View: borland.public.cppbuilder.internet.web
Article #199WebBrowser->Navigate
From: Gio
Date: Sun, 10 Jun 2007 11:45
Date: Sun, 10 Jun 2007 11:45
41 lines
1860 bytes
1860 bytes
Hi all,
i need creating a new WebBrowser deriving from TCppWebBrowser, so that i did
as follows, but
running, i'm getting AccessViolation error while executing line
web->Navigate(WideString("http://www.qrz.com"));
Any idea what's doing wrong or missing ?
Thanks
Gio
-------------
UNIT1.H
......................
class webnew : public TCppWebBrowser
{
__published: // IDE-managed Components
private: // User declarations
public: // User declarations
__fastcall webnew(TComponent* Owner);
};
UNIT1.CPP
.................
__fastcall webnew::webnew(TComponent* Owner)
: TCppWebBrowser(Owner)
{
}
//---------------------------------------------------------------------------
void __fastcall TForm1::FormShow(TObject *Sender)
{
web=new webnew(this);
web->ParentWindow = Form1->Handle;
web->Height = Form1->Height;
web->Width = Form1->Width;
web->Visible = true;
TWinControl(web).Parent=Form1; // ALL OK so far
web->Navigate(WideString("http://www.qrz.com")); // HERE rise
EAccessViolation error
}
Technical Details
Message-ID:
<466be468@newsgroups.borland.com>Path:
arc1-ca.pugleaf.net!g2news1.google.com!news1.google.com!news.glorb.com!newsfeeds.ihug.co.nz!ihug.co.nz!newsgroups.borland.com!not-for-mailShow Full Headers
Complete Article Headers
X-Google-Thread: feeec,cbab162ee661e33e,start X-Google-Attributes: gidfeeec,public,usenet X-Google-Language: ENGLISH,ASCII-7-bit From: "Gio" <fgxmat@tin.it> Newsgroups: borland.public.cppbuilder.internet.web Subject: WebBrowser->Navigate Date: Sun, 10 Jun 2007 13:45:39 +0200 Lines: 43 X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 6.00.2900.3028 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.3028 X-RFC2646: Format=Flowed; Original NNTP-Posting-Host: 80.116.56.11 Message-ID: <466be468@newsgroups.borland.com> X-Trace: newsgroups.borland.com 1181475944 80.116.56.11 (10 Jun 2007 04:45:44 -0700) Path: arc1-ca.pugleaf.net!g2news1.google.com!news1.google.com!news.glorb.com!newsfeeds.ihug.co.nz!ihug.co.nz!newsgroups.borland.com!not-for-mail