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

Y

yogeshnelwadkar

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.?
 
M

Markus Grueneis

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
 
K

Kai-Uwe Bux

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
 
Y

yogeshnelwadkar

Markus said:
Search and Replace?


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
 
Y

yogeshnelwadkar

Kai-Uwe Bux said:
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
 
M

Michiel.Salters

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.
 
Y

yogeshnelwadkar

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"
 
P

peter koch

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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
474,432
Messages
2,571,682
Members
48,796
Latest member
Greg L.

Latest Threads

Top