This is Interesting: Free Magazines for Graphics designers and webmasters  


Home > Archive > Microsoft XML > March 2005 > catching exception from pIXMLHTTPRequest object





You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

Author catching exception from pIXMLHTTPRequest object
Joe

2005-03-23, 4:29 am

Hi,



I am having a problem with the following code. When there is an exception
happen inside the ¡§pIXMLHTTPRequest->send(var)¡¨ the ¡§GetLastError()¡¨
return 0 which means no error.



How can I get more information regarding all the exception happened inside
the ¡§pIXMLHTTPRequest->send¡¨?



Thank you



Joe



#import <msxml4.dll>

using namespace MSXML2;

HRESULT hr;

IXMLHTTPRequestPtr pIXMLHTTPRequest = NULL;

..

..

..

try

{

hr =
pIXMLHTTPRequest.CreateInstance("Msxml2.ServerXMLHTTP.4.0");

name

2005-03-25, 4:19 am

On my screen appears a "german" paragraph sign
in the body but not in the subject line.

Can you relieve us form this government token.

"
¡§pIXMLHTTPRequest

"

There should not be anything as that "§" in public Computer Code.

Else -> RUN.

-------

Enigma





"Joe" <xiang77@hotmail.com> wrote in message
news:uYrejS3LFHA.656@TK2MSFTNGP14.phx.gbl...
> Hi,
>
>
>
> I am having a problem with the following code. When there is an exception
> happen inside the ¡§pIXMLHTTPRequest->send(var)¡¨ the ¡§GetLastError()¡¨
> return 0 which means no error.
>
>
>
> How can I get more information regarding all the exception happened inside
> the ¡§pIXMLHTTPRequest->send¡¨?
>
>
>
> Thank you
>
>
>
> Joe
>
>
>
> #import <msxml4.dll>
>
> using namespace MSXML2;
>
> HRESULT hr;
>
> IXMLHTTPRequestPtr pIXMLHTTPRequest = NULL;
>
> .
>
> .
>
> .
>
> try
>
> {
>
> hr =
> pIXMLHTTPRequest.CreateInstance("Msxml2.ServerXMLHTTP.4.0");
>
> .
>
> .
>
> .
>
> hr = pIXMLHTTPRequest->send(var);
>
> .
>
> .
>
> .
>
> }
>
> catch (...)
>
> {
>
> DWORD dw = GetLastError();
>
> }
>
>


Sponsored Links


Copyright 2003 - 2008 forum4designers.com  Software forum  Computer Hardware reviews