473,395 Members | 1,681 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,395 software developers and data experts.

Editing Embedded Resource

Okay, so say I have a compiled DLL that contains a string resource.

I don't have access to the source code of the dll, but I wish to change that
resource.

How can I do that? :-)

- Sahil Malik [MVP]
Upcoming ADO.NET 2.0 book - http://tinyurl.com/9bync
----------------------------------------------------------------------------
---------------
Nov 17 '05 #1
4 3135
Given that resources are (officially) read only, your best bet would be to
use ildasm to disassemble the assembly, edit the string, and recompile it.

http://msdn.microsoft.com/library/de...perability.asp has a bit on how to do that.

Brendan
"Sahil Malik [MVP]" wrote:
Okay, so say I have a compiled DLL that contains a string resource.

I don't have access to the source code of the dll, but I wish to change that
resource.

How can I do that? :-)

- Sahil Malik [MVP]
Upcoming ADO.NET 2.0 book - http://tinyurl.com/9bync
----------------------------------------------------------------------------
---------------

Nov 17 '05 #2
Well ildasm's code isn't quite recompilable easily. And I really don't want
to mess up the rather extensive functionality in that dll.

--

- Sahil Malik [MVP]
Upcoming ADO.NET 2.0 book - http://tinyurl.com/9bync
----------------------------------------------------------------------------
---------------

"Brendan Grant" <Br**********@discussions.microsoft.com> wrote in message
news:ED**********************************@microsof t.com...
Given that resources are (officially) read only, your best bet would be to
use ildasm to disassemble the assembly, edit the string, and recompile it.

http://msdn.microsoft.com/library/de...perability.asp
has a bit on how to do that.
Brendan
"Sahil Malik [MVP]" wrote:
Okay, so say I have a compiled DLL that contains a string resource.

I don't have access to the source code of the dll, but I wish to change that resource.

How can I do that? :-)

- Sahil Malik [MVP]
Upcoming ADO.NET 2.0 book - http://tinyurl.com/9bync


--------------------------------------------------------------------------

--
---------------

Nov 17 '05 #3
You try using a normal hex editor?

"Sahil Malik [MVP]" <co*****************@nospam.com> wrote in message
news:%2****************@tk2msftngp13.phx.gbl...
Well ildasm's code isn't quite recompilable easily. And I really don't
want
to mess up the rather extensive functionality in that dll.

--

- Sahil Malik [MVP]
Upcoming ADO.NET 2.0 book - http://tinyurl.com/9bync
----------------------------------------------------------------------------
---------------

"Brendan Grant" <Br**********@discussions.microsoft.com> wrote in message
news:ED**********************************@microsof t.com...
Given that resources are (officially) read only, your best bet would be
to
use ildasm to disassemble the assembly, edit the string, and recompile
it.

http://msdn.microsoft.com/library/de...perability.asp
has a bit on how to do that.

Brendan
"Sahil Malik [MVP]" wrote:
> Okay, so say I have a compiled DLL that contains a string resource.
>
> I don't have access to the source code of the dll, but I wish to change that > resource.
>
> How can I do that? :-)
>
> - Sahil Malik [MVP]
> Upcoming ADO.NET 2.0 book - http://tinyurl.com/9bync


--------------------------------------------------------------------------

--
> ---------------
>
>
>


Nov 17 '05 #4
Or notepad searching for the string you want to change.

"Sahil Malik [MVP]" <co*****************@nospam.com> wrote in message
news:%2****************@tk2msftngp13.phx.gbl...
Well ildasm's code isn't quite recompilable easily. And I really don't
want
to mess up the rather extensive functionality in that dll.

--

- Sahil Malik [MVP]
Upcoming ADO.NET 2.0 book - http://tinyurl.com/9bync
----------------------------------------------------------------------------
---------------

"Brendan Grant" <Br**********@discussions.microsoft.com> wrote in message
news:ED**********************************@microsof t.com...
Given that resources are (officially) read only, your best bet would be
to
use ildasm to disassemble the assembly, edit the string, and recompile
it.

http://msdn.microsoft.com/library/de...perability.asp
has a bit on how to do that.

Brendan
"Sahil Malik [MVP]" wrote:
> Okay, so say I have a compiled DLL that contains a string resource.
>
> I don't have access to the source code of the dll, but I wish to change that > resource.
>
> How can I do that? :-)
>
> - Sahil Malik [MVP]
> Upcoming ADO.NET 2.0 book - http://tinyurl.com/9bync


--------------------------------------------------------------------------

--
> ---------------
>
>
>


Nov 17 '05 #5

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...
1
by: n! | last post by:
I have an irritating problem with VS.NET2003, C#. I wrote some code that would build my application menu from an XML resource file. Purely to make it easy for me to edit, so I've added this file as...
2
by: Kyle Kaitan | last post by:
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...
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...
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...
1
by: =?Utf-8?B?TmV0aGVzaA==?= | last post by:
Where I can find to download "Manifest Generation and Editing Tool (Mage.exe) " or "Manifest Generation and Editing Tool, Graphical Client (MageUI.exe) ". Is there any other tool which will help...
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...
0
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...
0
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...
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
0
BarryA
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...
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
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...

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.