473,320 Members | 2,088 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,320 software developers and data experts.

Structured exception

200 100+
Hello everyone,


I am learning structured exception from,

http://msdn2.microsoft.com/en-us/library/ms681409(VS.85).aspx

I read a couple of links from MSDN, but still confused what is structured exception, what is the differences between structure exception and our normal C++ exception, like bad_alloc and various user define exception?


thanks in advance,
George
Jan 19 '08 #1
6 1281
weaknessforcats
9,208 Expert Mod 8TB
C++ exceptions use try/throw/catch.

Structured exceptions are a Microsoft invention and do not use these keywords. They use other keywords.

There is nothing compatible between C++ exceptions and Microsoft structured exceptions. They even had to twiddle the compiler to add non-standard C++ extensions to make these work.
Jan 20 '08 #2
George2
200 100+
Thanks weaknessforcats!


I have made some further study and I want to share my points here to let you review and comment.

http://members.cox.net/doug_web/eh.htm

From section Q2, I found two mistakes I made before.

1. Previously I think currently in Visual Studio 2005 or 2008, we could only use C++ exception, but now I think we can switch to let compile generate code either throws structured exception or C++ exception by using /EHa or /EHs, right?

2. Previously, I think catch(...) can only catch C++ exception, but after learning, I think catch(...) can also catch structured exception. Right?

C++ exceptions use try/throw/catch.

Structured exceptions are a Microsoft invention and do not use these keywords. They use other keywords.

There is nothing compatible between C++ exceptions and Microsoft structured exceptions. They even had to twiddle the compiler to add non-standard C++ extensions to make these work.

regards,
George
Jan 22 '08 #3
weaknessforcats
9,208 Expert Mod 8TB
Windows via C/C++ by Jeffrey Richter 2008. Page 727.

Buy the book!
Jan 22 '08 #4
George2
200 100+
Thanks weaknessforcats,


I have pre-ordered it. I am not in U.S. or Canada and it take some time to deliver the book.

Could you recommend some other online resources as complementary?

Windows via C/C++ by Jeffrey Richter 2008. Page 727.

Buy the book!

regards,
George
Jan 23 '08 #5
weaknessforcats
9,208 Expert Mod 8TB
Try Google.

I found this at once: http://www.microsoft.com/msj/0197/ex...exception.aspx.
Jan 23 '08 #6
George2
200 100+
Thanks weaknessforcats,


Great article! I will read it.

Try Google.

I found this at once: http://www.microsoft.com/msj/0197/ex...exception.aspx.

regards,
George
Jan 25 '08 #7

Sign in to post your reply or Sign up for a free account.

Similar topics

3
by: Edmond Neo | last post by:
I use structured storage to store large amounts of data in various streams. I realize that I can call structured storage through a wrapper in .NET, but I'm concerned that there is a performance...
2
by: Ganesh | last post by:
Hi, I have some general questions about structured programming. I am trying to understand how the programs look like without structured programming? What constitute a structured program? How has...
3
by: _link98 | last post by:
Running DB2 ESE V8.1.8 on WinXP. This is Fixpak 8. Have a structured-type and some methods for that type. One of my methods needs to do insert / update on tables. The type specification...
3
by: ambika | last post by:
Hello, I have a very basic doubt. Why is C called a structured programming language??why structured? C++ is called a Object Oriented language 'cos it obeys the OOP's concepts..Why is C called a...
4
by: Troy | last post by:
We recently installed the .Net framework on a windows 2000 server. Shortly after that we experienced intermitant problems running a web based program that accesses an Access 2002 database. The...
4
by: rhino | last post by:
I've been looking at the information on Structured Types in the certifcation guide and have previously read it in the DB2 manuals. As neat as Structured Types are, I'm very curious to know if they...
1
by: George2 | last post by:
Hello everyone, I am learning structured exception from, http://msdn2.microsoft.com/en-us/library/ms681409(VS.85).aspx I read a couple of links from MSDN, but still confused what is...
3
by: George2 | last post by:
Hello everyone, I have tested try-catch works with structured exception, to my surprise. Previously I think we have to use __try and __except. Any comments? Here is my test code and I am...
5
by: George2 | last post by:
Hello everyone, I am learning set_se_translator, and there are some good resources about how to translate structured exception into C++ exception, like, ...
1
AmberJain
by: AmberJain | last post by:
HELLO, First of all, I accept that this is a too simple question but I got different opinions in different books and so I'm posting it here...... The question is simple.....Is C a block...
0
by: DolphinDB | last post by:
The formulas of 101 quantitative trading alphas used by WorldQuant were presented in the paper 101 Formulaic Alphas. However, some formulas are complex, leading to challenges in calculation. Take...
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
1
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
1
by: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
0
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...
1
by: Shællîpôpï 09 | last post by:
If u are using a keypad phone, how do u turn on JavaScript, to access features like WhatsApp, Facebook, Instagram....
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...

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.