| Author |
catching exception from pIXMLHTTPRequest object
|
|
|
| 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");
| |
|
| 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();
>
> }
>
>
|
|
|
|
| Copyright 2003 - 2008 forum4designers.com Software forum Computer Hardware reviews |