473,378 Members | 1,360 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,378 software developers and data experts.

catching exception from pIXMLHTTPRequest object

Joe
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.ServerXMLH TTP.4.0");

Nov 12 '05 #1
1 1192
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" <xi*****@hotmail.com> wrote in message
news:uY*************@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.ServerXMLH TTP.4.0");

.

.

.

hr = pIXMLHTTPRequest->send(var);

.

.

.

}

catch (...)

{

DWORD dw = GetLastError();

}


Nov 12 '05 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

8
by: Adam H. Peterson | last post by:
Hello, I sometimes find myself writing code something like this: try { Derived &d=dynamic_cast<Derived&>(b); d.do_something_complicated(); // etc.... } catch (std::bad_cast) { throw...
3
by: Bryan | last post by:
I have an unknown error in some legacy code. I can catch it with catch (...), but I cannot tell what kind of error it is. Is there any base exception class (like in java) that I can try and...
2
by: Adam | last post by:
If I catch an exception in a static callback method like: private static void ResponseCallback(IAsnycResult asyncResult) { try { //code...code...code } catch (WebException e) { //handle...
7
by: cmay | last post by:
FxCop complains every time I catch System.Exception. I don't see the value in trying to catch every possible exception type (or even figuring out what exceptions can be caught) by a given block...
12
by: Vasco Lohrenscheit | last post by:
Hi, I have a Problem with unmanaged exception. In the debug build it works fine to catch unmanaged c++ exceptions from other dlls with //managed code: try { //the form loads unmanaged dlls...
2
by: Geoff O | last post by:
I have a try catch block in a web service that executes ADO.NET code that interfaces with an Oracle database. In addition, I have a try catch block in the client around the call to the web...
2
by: Eric Lilja | last post by:
Hello, consider this complete program: #include <iostream> #include <string> using std::cout; using std::endl; using std::string; class Hanna {
7
by: jm.suresh | last post by:
Hi, In the following program, I have a class Test which has a property x. Its setx function gets a string value and converts it into a float and stores into it. class Test(object): def...
2
by: Michael Goerz | last post by:
Hi, when I try to catch ctrl+c with except KeyboardInterrupt: pychecker tells me Catching a non-Exception object (KeyboardInterrupt)
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...
0
by: ryjfgjl | last post by:
In our work, we often need to import Excel data into databases (such as MySQL, SQL Server, Oracle) for data analysis and processing. Usually, we use database tools like Navicat or the Excel import...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.