473,387 Members | 1,516 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,387 software developers and data experts.

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 3303
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_translator()
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_translator()
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_translator() , this if for "Translating 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_translator() "
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.public.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
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...
5
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...
4
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...
4
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...
1
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...
1
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...
41
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...
4
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...
0
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...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
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
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
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...
0
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,...
0
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,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

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.