TECHNOLOGIES
FORUMS
JOBS
BOOKS
EVENTS
INTERVIEWS
Live
MORE
LEARN
Training
CAREER
MEMBERS
VIDEOS
NEWS
BLOGS
Sign Up
Login
No unread comment.
View All Comments
No unread message.
View All Messages
No unread notification.
View All Notifications
Answers
Post
An Article
A Blog
A News
A Video
An EBook
An Interview Question
Ask Question
Forums
Monthly Leaders
Forum guidelines
ronkainen
NA
1
0
Translating (using resources?)
Nov 7 2003 2:26 PM
Hi, I read a short article here about using and creating resources. Some questions just came to my mind. I'll put my code here in the beginning, and some questions following: namespace MyGame { public class Game { static void Main() { ResourceWriter rw = new ResourceWriter("MyGame.resources"); rw.AddResource("Name", "Miksan"); rw.Generate(); rw.Close(); ResourceManager rm = new ResourceManager("MyGame.MyGame", Assembly.GetExecutingAssembly()); MessageBox.Show(rm.GetString("Name")); } } } Why does the extension has to be .resources? Do I have to use Generate method? Why do I have to use string like this to read the resource "MyGame.MyGame"? Why can't I use there the original filename? What is the executing assembly? How can I know if the fetching of the resource failed? How the heck should I edit these resource files? Do I have to produce every resource file by doing it by hand? Is there any editor for these? I'm using the resources for translating, is this format even the correct one? What is the "assembly file resource" found in the vs.net "add new file" menu (xml and with an editor)? Can it (.resx) be used for translating? How would I read them in my program? etc. Well, I've got too many questions. I'm quite lost with this resource thing. Can you help?
Reply
Answers (
0
)
Using the regex class
Accessing printer in c# windows service fails