Thread View: borland.public.cppbuilder.internet.web
3 messages
3 total messages
Started by Gio
Sun, 10 Jun 2007 11:45
WebBrowser->Navigate
Author: 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
}
Re: WebBrowser->Navigate
Author: Shao
Date: Thu, 14 Jun 2007 08:13
Date: Thu, 14 Jun 2007 08:13
6 lines
832 bytes
832 bytes
Do it this way:
web->Navigate(WideString("http://www.qrz.com").c_bstr());
-Shao
Re: WebBrowser->Navigate
Author: Gio
Date: Thu, 14 Jun 2007 15:15
Date: Thu, 14 Jun 2007 15:15
8 lines
1213 bytes
1213 bytes
Thanks Shao,
it doesn't work although, instead if i set
web->Navigate(WideString"").c_bstr()) or web->Navigate(WideString(""))
error doesn't arise, but no link of course.
It seems the problem arise in handling url parameter.
Thanks anyway.
Giorgio
Thread Navigation
This is a paginated view of messages in the thread with full content displayed inline.
Messages are displayed in chronological order, with the original post highlighted in green.
Use pagination controls to navigate through all messages in large threads.
Back to All Threads