473,411 Members | 2,030 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,411 software developers and data experts.

Embedded resource suggestions?

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
2 1870
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
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 thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
by: james | last post by:
What class / method should I be using to get the full path to an embedded resource ? In my case I have an .xml file that my app uses, it is set as embedded resource, and I have a control that...
5
by: Drew | last post by:
Assembly asm = Assembly.GetExecutingAssembly(); me = new Bitmap(asm.GetManifestResourceStream("me.gif")); I have used this before without any problem, but now I get: An unhandled exception...
0
by: Johann Blake | last post by:
I'm having trouble grasping how ASP.NET correctly locates resources. There is plenty of documentation on this subject but some things are not clear at all. In my ASP.NET application, I have...
5
by: brian | last post by:
I previously posted a question about embedding and EXE into a VB.NET EXE and being able to shell to the embedded EXE. A gentleman responded saying to embed the EXE in my program as a resource. ...
4
by: Jason Pettys | last post by:
In an ASP.NET project I am setting the content type of my .ascx and ..aspx files to Embedded Resource for a separate reason. When I do this they get embedded as "RootNamespace.Filename" but I...
7
by: H. Williams | last post by:
I know the .Net Cursor class doesn't work with color cursors. So I'm currently using the LoadCursorFromFile API with reflection to set color cursors: here is my code: public static extern...
2
Frinavale
by: Frinavale | last post by:
I am attempting to use embedded resources in an Ajax Enabled ASP.NET Web Application. I'm using Visual Studio 2008 and VB.NET server side code. The project is called "EmbeddedResources" with the...
2
by: steve | last post by:
I have the following routine for retrieving error message strigs from a resource file which is embedded in the project. But when it is called I get the error messsage "Could not find any...
8
by: raylopez99 | last post by:
I have the latest version of Visual Studio 2008 Professional, which allows you to create resource files (this is the .resx file, no?), unlike the Express version, which does not. I am trying to...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
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...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
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...
0
jinu1996
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...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...
0
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...

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.