Click here to Skip to main content
Rate this: bad
Please Sign up or sign in to vote.
See more: C# locale localization
I have an exe which read CultureInfo from xml file and sets current thread CultureInfo (developed on some specific requirements). If nothing is defined in xml file then it always sets locale as en-US. I dont have the source code, only the exe. Is there any way to run this exe with different CultureInfo settings (ex.- using AppDomain or Process classes)...? basically I want to create a separate exe which sets the CultureInfo of current thread and then loads this exe. Please suggest other ways to do it. Hope I am clear.
Posted 12-Mar-13 21:13pm
Edited 12-Mar-13 21:19pm
Sergey Alexandrovich Kryukov at 13-Mar-13 2:45am
So clear that I even up-voted the question with 4, which happens quite rarely :-)
(For comparison, these days, up to half of the questions are so bad that they are removed immediately, often even with reports for abuse. :-)

1 solution

Rate this: bad
Please Sign up or sign in to vote.

Solution 1

It depends on that EXE. If it uses hard-coded culture and does not provide any mechanism for changing culture, you hardly can do anything except… reverse-engineering it with modification of the code, which is, by the way, is not so hard to achieve.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

  Print Answers RSS
0 OriginalGriff 455
1 Sergey Alexandrovich Kryukov 312
2 DamithSL 179
3 King Fisher 179
4 Peter Leow 154
0 OriginalGriff 240
1 Maciej Los 95
2 Sascha Lefévre 85
3 King Fisher 70
4 F-ES Sitecore 55

Advertise | Privacy | Mobile
Web01 | 2.8.150327.1 | Last Updated 13 Mar 2013
Copyright © CodeProject, 1999-2015
All Rights Reserved. Terms of Service
Layout: fixed | fluid

CodeProject, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100