🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Thread View: borland.public.cppbuilder.internet.web
3 messages
3 total messages Started by Willie Thu, 23 Sep 2004 06:34
NavigateError
#1568
Author: Willie
Date: Thu, 23 Sep 2004 06:34
19 lines
1383 bytes
Hello:

How can I get the HTTP Status Codes in NavigateError? For example...

void __fastcall TForm1::CppWebBrowser1NavigateError(TObject *Sender,
      LPDISPATCH pDisp, Variant *URL, Variant *Frame, Variant *StatusCode,
      VARIANT_BOOL *Cancel)
{
   ShowMessage(StatusCode->VInteger);
   // This code is HRESULT Status Codes (0x800C....L), not HTTP Status Codes
(4.., 5..).
}

Reference of NavigateError Event Status Codes
http://msdn.microsoft.com/library/default.asp?url=/workshop/browser/webbrows
er/reference/constants/statuscodesvb.asp

Thank you very much.
Willie.
Re: NavigateError
#1569
Author: Remy Lebeau (TeamB)
Date: Thu, 23 Sep 2004 08:24
19 lines
1567 bytes
"Willie" <Willie.nospam@nospam.pchome.com.tw> wrote in message
news:41526ba9@newsgroups.borland.com...

> How can I get the HTTP Status Codes in NavigateError?

You already know the answer to that, because you are already doing it..

>    ShowMessage(StatusCode->VInteger);
>    // This code is HRESULT Status Codes (0x800C....L), not
> HTTP Status Codes (4.., 5..).

You don't have any choice in what type of codes are returned to you.  As the
reference states, the NavigateError can return HRESULT codes as well as HTTP
codes.  You just happen to see it return HRESULT codes in your code.  You
iwll just haveto use whatever values are given to you.


Gambit
Re: NavigateError
#1576
Author: Willie
Date: Mon, 27 Sep 2004 08:59
31 lines
1817 bytes
Hello Remy:

Thank you very much.

Willie.

"Remy Lebeau (TeamB)" <no.spam@no.spam.com> ���g��l��s�D
:4152889f$1@newsgroups.borland.com...
>
> "Willie" <Willie.nospam@nospam.pchome.com.tw> wrote in message
> news:41526ba9@newsgroups.borland.com...
>
> > How can I get the HTTP Status Codes in NavigateError?
>
> You already know the answer to that, because you are already doing it..
>
> >    ShowMessage(StatusCode->VInteger);
> >    // This code is HRESULT Status Codes (0x800C....L), not
> > HTTP Status Codes (4.., 5..).
>
> You don't have any choice in what type of codes are returned to you.  As
the
> reference states, the NavigateError can return HRESULT codes as well as
HTTP
> codes.  You just happen to see it return HRESULT codes in your code.  You
> iwll just haveto use whatever values are given to you.
>
>
> Gambit
>
>
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