473,386 Members | 1,702 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,386 software developers and data experts.

Resource File Editting Issue Using WinRes.exe

Hi all.

I have a frustrating issue that I can't seem to figure out. EXPERTS
please help me~! Deadline is coming up soon~!

My task is to localize a winform application. The .Net Designer
creates its own .resx file (i.e. form1.resx) for each form. I realized
that I was not able to add any strings inside that .resx file because
the .Net Designer will overwrite that .resx file causing me to lose
the strings I add. Therefore, I created a separate .resx file (i.e.
form1.en.resx). I did this by using the winres.exe tool provided by
..Net (default: C:\Program Files\Microsoft Visual Studio .NET
2003\SDK\v1.1\Bin\winres.exe). I opened the designer created .resx
file (which I set Localizable to TRUE) inside winres.exe and saved it
as the ENGLISH language. There was no modification done since the
Designer created .resx file was already in english. By creating this
separate .resx file (form1.en.resx), I am now able to add new strings
to the .resx file without having to worry that the Designer will
overwrite it.

This is where my issue starts. Once I added new strings into the
english .resx file (form1.en.resx), I was not able to open it back up
in winres.exe. I keep receiving the error:

************************************************** **
An error occurred while loading the document. Fix the error, and then
try loading the document again. The error message follows:

Length cannot be less than zero.
Parameter name: length
************************************************** **

Once I delete the strings I added to that .resx file, then I was able
to open up that .resx file in winres.exe again.

It is IMPORTANT that the english .resx file be able to open in
winres.exe because this will be the tool that other developers in
other countries will use to translate the english to their language,
format the size of the forms to adjust to text length changes, and
save be able to save the changes as a separate .resx. Once they are
done with the forms, then they will use a separate tool
(reseditor.exe: also provided by .Net. DEFAULT:C:\Program
Files\Microsoft Visual Studio .NET
2003\SDK\v1.1\Samples\Tutorials\resourcesandlocali zation\reseditor\reseditor.exe)
to translate the strings that I added.

The strings that I added into the .resx files are strings that will be
used in message boxes. It is impossible to edit these text using
winres.exe because winres.exe allows you to only edit what's on the

Any help on this would be greatly appreciated. Thanks in advance.
Nov 16 '05 #1
0 2175

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

by: Bill | last post by:
Hi Everyone, I am having some difficulty in using the Windows Resource Localization Editor (WinRes.exe) on several Visual Basic .NET forms (.resx files) in two different projects. The editor...
by: Dan H. | last post by:
Hello, What is the equivalent "string resource file" in c#? And, is there a way to create a beep in C#? Thanks, Dan
by: SHC | last post by:
Hi all, I saw the following 2 files used in the OpenGL and DirectX 9 programming: 1) resource.h //{{NO_DEPENDENCIES}} // Microsoft Visual C++ generated include file. // Used by...
by: Barry | last post by:
I have looked for this answer but no luck so far In VB 6 I could used a resource file to hold icons which I could then use throughout my program. I have not yet found out hw to do this in...
by: Albano Alves | last post by:
Boas! Estou desenvolver um gestor documental para funcionar numa intranet. Uma das acções é o upload de ficheiros para o servidor. Existe alguma forma de ilimitar o tamanho dos ficheiros no...
by: Jack Russell | last post by:
I am looking at "internationalising" a project. I can understand resource files, creating them etc. However the drawback with them seems to be you need to use Visual Studio to create and...
by: Dom | last post by:
I get an InvalidOperationException with the message "The resource class for this page was not found. Please check if the resource file exists and try again." when I change the resource file of a...
by: Dave Brown | last post by:
Hi there, Given an arbitrary ".resx" file (not ."resources"), does anybody know how I can identify that this file actually contains a Windows form (in code). Once identified, I then want to...
by: =?Utf-8?B?UGF1bCBIYWdlcg==?= | last post by:
I've been trying to solve this issue for the better part of a month. My attempts to get an answer on the MSDN groups proved to no avail. Here is the situation/problem. I am migrating an old...
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.