newbie question

  • Thread starter Thread starter Doug
  • Start date Start date
D

Doug

Hi

I have seen files in some programs that I have been given that have the
extension of 'resx'. Could someone please tell me what these files are,
what they are used for, and how i can load or create them.

Thanks

Csharp newbie
 
Hello Doug,

It's resource file where are your icons, bitmaps and etc are located, the
things that generaly can't be in your code

D> I have seen files in some programs that I have been given that have
D> the extension of 'resx'. Could someone please tell me what these
D> files are, what they are used for, and how i can load or create them.

---
WBR,
Michael Nemtsev :: blog: http://spaces.msn.com/members/laflour

"At times one remains faithful to a cause only because its opponents do not
cease to be insipid." (c) Friedrich Nietzsche
 
Michael

So is it created automatically, or do i need to create it myself? If it is
already there and i change the code or form - does it get updated
automatically?

Thanks
 
Hello Doug,

Indeed

D> So is it created automatically, or do i need to create it myself? If
D> it is already there and i change the code or form - does it get
D> updated automatically?
D>
D> Thanks
D>
D> D>---
WBR,
Michael Nemtsev :: blog: http://spaces.msn.com/members/laflour

"At times one remains faithful to a cause only because its opponents do not
cease to be insipid." (c) Friedrich Nietzsch
 
Ok - so it is created automatically?

do i need to write code for this - and what does the code look like?

thanks
 
You just forget they are there.


Take a look into it, it's a regular XML file that you can open in notepad

do not change it though.

cheers,
 
thanks - but i am interested in
where they come from?
Do i need to create them ?
Do they get created at run time?

i cant see them in my csharp projects - so how do i create one?
 
Hello Doug,

U need nothing to do with it, create neither, just look at :)
It's just a way to keep your resources in one place w/out spreading in code


D> thanks - but i am interested in
D> where they come from?
D> Do i need to create them ?
D> Do they get created at run time?
D> i cant see them in my csharp projects - so how do i create one?
D>

---
WBR,
Michael Nemtsev :: blog: http://spaces.msn.com/members/laflour

"At times one remains faithful to a cause only because its opponents do not
cease to be insipid." (c) Friedrich Nietzsch
 
Michael

What I am asking is -
1. where does it get gnerated from?
2. how do i generate one?
3. is it good programming to create one?
4. what circumstances is it good to have one?

I have written several small applications but never found a need for one.
 
Hello Doug,

D> Michael
D> What I am asking is -
D> 1. where does it get gnerated from?

In the VS

D> 2. how do i generate one?

By ResXResourceWriter class

D> 3. is it good programming to create one?

nope in general, but it depends

D> 4. what circumstances is it good to have one?

I think in CodeDom, when u dynamically construct code

Read this http://msdn.microsoft.com/library/d.../html/cpconresourcesinresourcesfileformat.asp
---
WBR,
Michael Nemtsev :: blog: http://spaces.msn.com/members/laflour

"At times one remains faithful to a cause only because its opponents do not
cease to be insipid." (c) Friedrich Nietzsch
 
Back
Top