I need to translate structured exceptions manually, using the current translator.
How do I ‘get’ the value someone has set by _set_se_translator?
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
Better (new) way
I didn’t realize this at first, but the SE translator is thread-local, not process-wide.
So this is actually the best (and easiest) solution:
Hacky (old) way
There is no direct way to do this, but if you’re going to risk some incompatibility and delve into the Visual C runtime’s internals, you can hack up a solution like this: