By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
435,294 Members | 2,681 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 435,294 IT Pros & Developers. It's quick & easy.

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

P: n/a
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
Share this Question
Share on Google+
7 Replies


P: n/a
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

P: n/a
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

P: n/a

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

P: n/a

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

P: n/a

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

P: n/a
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

P: n/a

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 discussion thread is closed

Replies have been disabled for this discussion.