Click here to Skip to main content
Rate this: bad
good
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
v2
Comments
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. :-)
—SA

1 solution

Rate this: bad
good
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.
 
—SA
  Permalink  

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



Advertise | Privacy | Mobile
Web03 | 2.8.1411022.1 | Last Updated 13 Mar 2013
Copyright © CodeProject, 1999-2014
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