473,993 Members | 2,468 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

handling catch(...) to convert it into SEH

Hello, i have a problem with replacing c++ exception handling with
structured exception handling. How to replace the " catch(...) " in
c++ exception handling with, __except , a structured exception
handling.
If i write "#define catch(...) ----" ; then it doesn't take ' ... ' as
a string ; so, prompts an error.. error C2010: '.' : unexpected in
macro formal parameter list
what to be written in place of ' --- ' ; to be convert it into an
St.Ex.Handling. ?

Sep 11 '06 #1
7 3335
yo************* @gmail.com schrieb:
Hello, i have a problem with replacing c++ exception handling with
structured exception handling. How to replace the " catch(...) " in
c++ exception handling with, __except , a structured exception
handling.
Search and Replace?
If i write "#define catch(...) ----" ; then it doesn't take ' ... ' as
a string ; so, prompts an error.. error C2010: '.' : unexpected in
macro formal parameter list
what to be written in place of ' --- ' ; to be convert it into an
St.Ex.Handling. ?
I doubt you will get what you actually expect.

Though this is not really a C++ question: Look-up _set_se_transla tor()
in the MSDN. There is an example how to translate a structured
exception into a C++ exception. I think, that's what you want. For
further questions you may want to look into some Microsoft group.
best regards,
-- Markus
Sep 11 '06 #2
yo************* @gmail.com wrote:
Hello, i have a problem with replacing c++ exception handling with
structured exception handling. How to replace the " catch(...) " in
c++ exception handling with, __except , a structured exception
handling.
[snip]

There is no __except in C++; and I never heard about "structured exception
handling". I guess, you are off-topic in this group. Here, we talk C++ as
defined per ISO standard.

In case __except is an extension your compiler provides, you could take your
question to a forum dedicated to that platform.
Best

Kai-Uwe Bux

Sep 11 '06 #3

Markus Grueneis wrote:
yo************* @gmail.com schrieb:
Hello, i have a problem with replacing c++ exception handling with
structured exception handling. How to replace the " catch(...) " in
c++ exception handling with, __except , a structured exception
handling.

Search and Replace?
If i write "#define catch(...) ----" ; then it doesn't take ' ... ' as
a string ; so, prompts an error.. error C2010: '.' : unexpected in
macro formal parameter list
what to be written in place of ' --- ' ; to be convert it into an
St.Ex.Handling. ?

I doubt you will get what you actually expect.

Though this is not really a C++ question: Look-up _set_se_transla tor()
in the MSDN. There is an example how to translate a structured
exception into a C++ exception. I think, that's what you want. For
further questions you may want to look into some Microsoft group.
best regards,
-- Markus

Hi again,
i think up _set_se_transla tor() , this if for "Translatin g the
structured exception to a C++" but i need the reverse way : C++
exception to structured exception.
Because WYSE devices (CE devices) only support structured/ windows
exception handling.
Do u know any reverse working function of "_set_se_transl ator() "
thanks for reply

Sep 11 '06 #4

Kai-Uwe Bux wrote:
yo************* @gmail.com wrote:
Hello, i have a problem with replacing c++ exception handling with
structured exception handling. How to replace the " catch(...) " in
c++ exception handling with, __except , a structured exception
handling.
[snip]

There is no __except in C++; and I never heard about "structured exception
handling". I guess, you are off-topic in this group. Here, we talk C++ as
defined per ISO standard.

In case __except is an extension your compiler provides, you could take your
question to a forum dedicated to that platform.
Best

Hi again
structured exception handling is the Windows exception Handling in
which __try and __catch is used in place of try & catch
pl tell me if u know any function that convert c++ exception into
structured/windows exceptions.
thanks for reply
>
Kai-Uwe Bux
Sep 11 '06 #5

yo************* @gmail.com wrote:
Kai-Uwe Bux wrote:
yo************* @gmail.com wrote:
Hello, i have a problem with replacing c++ exception handling with
structured exception handling.
There is no __except in C++; and I never heard about "structured exception
handling". I guess, you are off-topic in this group. Here, we talk C++ as
defined per ISO standard.

Hi again
structured exception handling is the Windows exception Handling
Well, that means that Kai-Uwe guessed correctly. Windows questions
should go to a microsoft group, and are off-topic here.

HTH,
Michiel Salters.

Sep 11 '06 #6
it is not off topic
it is related to C++ exception handling.
how to convert catch(...) to SEH.
or how to replace the catch(...) by using a "#define"

Sep 11 '06 #7

yo************* @gmail.com wrote:
it is not off topic
it is related to C++ exception handling.
how to convert catch(...) to SEH.
or how to replace the catch(...) by using a "#define"
Sorry but you are off-topic here anyway. To repeat the advice given by
others:
Ask in a group related to that problem - perhaps something like
microsoft.publi c.language.vc.

/Peter

Sep 11 '06 #8

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

Similar topics

3
9855
by: James Foreman | last post by:
I've got a set of emails in a table, where sometimes they've failed to input the @ properly. Eg james.foreman'abcmail.co.uk How do I write a replace to deal with that? Also, I've got a set of names in a table, all in lower case. I can easily capitalise the first letter of each name, but if it's somebody like O'Brien, I'd like to get that right too (so need to be able to
5
1512
by: Asha | last post by:
greetings, i'm converting my value to int value using int32.parse() the problem is that, if its an empty value it returns me an error. what can i do to handle this error besides using a if condition to handle it.
4
7628
by: James Radke | last post by:
Hello, I am looking for guidance on best practices to incorporate effective and complete error handling in an application written in VB.NET. If I have the following function in a class module (note that this class module represents the business layer of code NOT the gui layer): Public Function Test(ByVal Parm1 As Integer, ByVal Parm2 As Integer) As SqlDataReader ' Declare the SQL data layer class Dim oSQL As New...
4
1347
by: Boni | last post by:
Dear all, dim my_form as some_system_windows_form try myform.showdialog() catch .... end try If exception happens in the handler of some control on a form the "catch" never get it, because form runs in separate thread. Is it possible to handle
1
1111
by: Tarun Mistry | last post by:
Hi everyone, hopefully a simple question. I have an asp.net application which currently does not have any Exception Handling, what would be the easiest way to encapsulate the application such that on an error i could display a simple error without having to go through the entire application adding in control login. This is just a prototype however it is important that it dies well as opposed to badly.
1
2265
by: pob | last post by:
>From a form I have some code that calls 4 modules frmMain 1 mod 2 mod 3 mod 4 mod If mod 1 experiences an error the error handling works fine within mod 1 and writes out the error to a table, but the other modules still get
41
3124
by: Zytan | last post by:
Ok something simple like int.Parse(string) can throw these exceptions: ArgumentNullException, FormatException, OverflowException I don't want my program to just crash on an exception, so I must handle all of them. I don't care about which one happened, except to write out exception.Message to a log file. It seems verbose to write out three handlers that all do the same thing. So, I could just catch Exception. But, is that...
4
1944
by: brendan.wong | last post by:
hello. i'm trying to incorporate error handling into my application, but i've run into a dilemma. i've already performed 10 successful INSERTS, but on the 11th INSERT, the application fails for some reason (say for example, i tried to perform an INSERT into a table that doesn't exist). logically, i should stop execution and display some sort of error message. but, i've already ran a bunch of INSERTS so what do i do? thanks
0
10819
Debadatta Mishra
by: Debadatta Mishra | last post by:
Introduction In this article I will provide you an approach to manipulate an image file. This article gives you an insight into some tricks in java so that you can conceal sensitive information inside an image, hide your complete image as text ,search for a particular image inside a directory, minimize the size of the image. However this is not a new concept, there is a concept called Steganography which enables to conceal your secret...
0
10412
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
11932
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
1
11739
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
1
8558
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 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 a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
7713
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
6673
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
5262
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
4840
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
3849
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.