Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsFree MagazinesWhite PapersSubmit Content
Discussion GroupsASP.NETWindows FormsLanguages.NET FrameworkVisual Studio.NET
Articles.NET FrameworkASP.NETToolsWindows Forms
.NET DirectoryOpen Source ProjectsUser GroupsWeb Resources
Related Topics
Visual Basic 6SQL ServerMS AccessOther DB ProductsMS Server ProductsMore Topics ...

.NET Forum / .NET Framework / Internationalization / September 2007

Tip: Looking for answers? Try searching our database.

Create Resource file from text file

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Amb k - 05 Sep 2007 13:58 GMT
Hi

I have a text file used for localisation string, now i want to create
.resource file from this text file at runtime. I am able to create it with
Resgen externally, but how can do that through program?
Tim Van Wassenhove - 05 Sep 2007 20:39 GMT
>  Hi
>
> I have a text file used for localisation string, now i want to create
> .resource file from this text file at runtime. I am able to create it with
> Resgen externally, but how can do that through program?

Using System.Diagnostice.Process Start method to invoke resgen.exe seems
the least expensive solution.

Signature

Kind regards,
Tim Van Wassenhove <url:http://www.timvw.be/>

Amb k - 06 Sep 2007 05:02 GMT
When i try to run the following code, it shows invalid operation exception

Pinfo.FileName = "d:\\Software\\vs\\Installed
Components\\SDK\\v2.0\\Bin\\Resgen.exe";
           Pinfo.Arguments = " /compile D:\\Resource
Files\\resbource.en-US.txt";
           Pinfo.UseShellExecute = false;
           Process cv=System.Diagnostics.Process.Start(Pinfo);

So how do i do now...?
Tim Van Wassenhove - 06 Sep 2007 19:29 GMT
> When i try to run the following code, it shows invalid operation exception
>
[quoted text clipped - 4 lines]
>             Pinfo.UseShellExecute = false;
>             Process cv=System.Diagnostics.Process.Start(Pinfo);

I already posted an answer on the msdn forums
(http://forums.microsoft.com/MSDN/ShowPost.aspx?PostID=2099418&SiteID=1)

Signature

Kind regards,
Tim Van Wassenhove <url:http://www.timvw.be/>


Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.