Click here to Skip to main content
11,575,921 members (58,490 online)
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 20:13pm
Edited 12-Mar-13 20: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 Sergey Alexandrovich Kryukov 330
1 F-ES Sitecore 145
2 OriginalGriff 125
3 Dave Kreskowiak 120
4 Abhinav S 98
0 OriginalGriff 705
1 Sergey Alexandrovich Kryukov 600
2 Abhinav S 438
3 F-ES Sitecore 410
4 Suvendu Shekhar Giri 365

Advertise | Privacy | Mobile
Web03 | 2.8.150603.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