HighTechTalks DotNet Forums  

Create Resource file from text file

Dotnet Internationalization microsoft.public.dotnet.internationalization


Discuss Create Resource file from text file in the Dotnet Internationalization forum.



Reply
 
Thread Tools Search this Thread Display Modes
  #1  
Old   
=?Utf-8?B?QW1iIGs=?=
 
Posts: n/a

Default Create Resource file from text file - 09-05-2007 , 08:58 AM






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?


Reply With Quote
  #2  
Old   
Tim Van Wassenhove
 
Posts: n/a

Default Re: Create Resource file from text file - 09-05-2007 , 03:39 PM






On 2007-09-05, Amb k <Ambk (AT) discussions (DOT) microsoft.com> wrote:
Quote:
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.

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


Reply With Quote
  #3  
Old   
=?Utf-8?B?QW1iIGs=?=
 
Posts: n/a

Default Re: Create Resource file from text file - 09-06-2007 , 12:02 AM



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...?

Reply With Quote
  #4  
Old   
Tim Van Wassenhove
 
Posts: n/a

Default Re: Create Resource file from text file - 09-06-2007 , 02:29 PM



On 2007-09-06, Amb k <Ambk (AT) discussions (DOT) microsoft.com> wrote:
Quote:
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);
I already posted an answer on the msdn forums
(http://forums.microsoft.com/MSDN/Sho...99418&SiteID=1)

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


Reply With Quote
Reply




Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.