Altova Mailing List Archives


Re: catching exception from pIXMLHTTPRequest object

From: "name" <user@------>
To: NULL
Date: 3/25/2005 3:27:00 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@h...> wrote in message
news:uYrejS3LFHA.656@T......
> 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();
>
> }
>
>

Disclaimer

These Archives are provided for informational purposes only and have been generated directly from the Altova mailing list archive system and are comprised of the lists set forth on www.altova.com/list/index.html. Therefore, Altova does not warrant or guarantee the accuracy, reliability, completeness, usefulness, non-infringement of intellectual property rights, or quality of any content on the Altova Mailing List Archive(s), regardless of who originates that content. You expressly understand and agree that you bear all risks associated with using or relying on that content. Altova will not be liable or responsible in any way for any content posted including, but not limited to, any errors or omissions in content, or for any losses or damage of any kind incurred as a result of the use of or reliance on any content. This disclaimer and limitation on liability is in addition to the disclaimers and limitations contained in the Website Terms of Use and elsewhere on the site.