By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
458,186 Members | 1,551 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 458,186 IT Pros & Developers. It's quick & easy.

Embedded resource suggestions?

P: n/a
I have an assembly (AppResources.dll) which contains a number of embedded
resource files. Most of these are key/value pairs of relevant strings; a few
are images and sounds; some more are XML files. My application will load the
resources into memory as they are needed.

I would like to be able to read and write to these embedded resources.

Is it possible to write to an embedded resource within an assembly? If so,
how? If it's not possible, what other resource-storage strategy would you
recommend so that I am able to read and write to the resources? I'd prefer
not to use individual files for each resource, if that's an option.

Thanks for your time.
Nov 16 '05 #1
Share this Question
Share on Google+
2 Replies


P: n/a
Hi Kyle,
"Kyle Kaitan" schrieb
I have an assembly (AppResources.dll) which contains a number of embedded
resource files. Most of these are key/value pairs of relevant strings; a
few
are images and sounds; some more are XML files. My application will load
the
resources into memory as they are needed.

I would like to be able to read and write to these embedded resources.

Is it possible to write to an embedded resource within an assembly? If so,
how? If it's not possible, what other resource-storage strategy would you
recommend so that I am able to read and write to the resources? I'd prefer
not to use individual files for each resource, if that's an option.


Did you take a look at the System.Resources.ResourceWriter-Class?
http://msdn.microsoft.com/library/en...classtopic.asp

Cheers

Arne Janning
Nov 16 '05 #2

P: n/a
Arne, I did indeed see that class. But I'll quote you a passage from it:
"Writes resources in the system-default format to an output file or an
output stream."

How would I open a writable stream to an embedded resource in an assembly?

Thanks!

"Arne Janning" <sp*****************@msn.com> wrote in message
news:O9**************@TK2MSFTNGP11.phx.gbl...
Hi Kyle,
"Kyle Kaitan" schrieb
I have an assembly (AppResources.dll) which contains a number of embedded
resource files. Most of these are key/value pairs of relevant strings; a
few
are images and sounds; some more are XML files. My application will load
the
resources into memory as they are needed.

I would like to be able to read and write to these embedded resources.

Is it possible to write to an embedded resource within an assembly? If so, how? If it's not possible, what other resource-storage strategy would you recommend so that I am able to read and write to the resources? I'd prefer not to use individual files for each resource, if that's an option.
Did you take a look at the System.Resources.ResourceWriter-Class?

http://msdn.microsoft.com/library/en...classtopic.asp
Cheers

Arne Janning

Nov 16 '05 #3

This discussion thread is closed

Replies have been disabled for this discussion.