> 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/>