473,748 Members | 2,611 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

How To Change or modify Embedded String Resource In An Assembly.

Hi,
How Can i Change or Modify Embedded String Resource In An Assembly. I
Need To Modify Embedded String Resource In An Assembly.
Please Help Me.

Thanks
Raghu.
Mar 9 '07 #1
3 9815
at design time its easy. Just delete the resource, add the new modified one
and set it to embedded resource, and rebuild.
At runtime, "not so easy".
Peter

--
Site: http://www.eggheadcafe.com
UnBlog: http://petesbloggerama.blogspot.com
Short urls & more: http://ittyurl.net


"raghu sunkara" wrote:
Hi,
How Can i Change or Modify Embedded String Resource In An Assembly. I
Need To Modify Embedded String Resource In An Assembly.
Please Help Me.

Thanks
Raghu.
Mar 9 '07 #2
hi peter,
i want to modify the resource at runtime. please tell any idea to modify
the resource at runtime even though it is not easy.

Thanks,
Raghu
"Peter Bromberg [C# MVP]" <pb*******@yaho o.yabbadabbadoo .comwrote in
message news:86******** *************** ***********@mic rosoft.com...
at design time its easy. Just delete the resource, add the new modified
one
and set it to embedded resource, and rebuild.
At runtime, "not so easy".
Peter

--
Site: http://www.eggheadcafe.com
UnBlog: http://petesbloggerama.blogspot.com
Short urls & more: http://ittyurl.net


"raghu sunkara" wrote:
>Hi,
How Can i Change or Modify Embedded String Resource In An Assembly.
I
Need To Modify Embedded String Resource In An Assembly.
Please Help Me.

Thanks
Raghu.

Mar 10 '07 #3
How Can i Change or Modify Embedded String Resource In An Assembly. I
Need To Modify Embedded String Resource In An Assembly.
Please Help Me.
You have to think if you really want that.
It will probably not work in Vista, because it is not permited to change
files under "Program Files"
And if one has an antivirus running, it will complain that something is
trying to change an executable.

Unless you are writing some kind of development tool, or executable editor,
it is safer to look for a solution other than changing the executable.
--
Mihai Nita [Microsoft MVP, Windows - SDK]
http://www.mihai-nita.net
------------------------------------------
Replace _year_ with _ to get the real email
Mar 10 '07 #4

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

7
19233
by: Christofer Dutz | last post by:
Hi, I am trying to read a XML-File which I marked as embedded resource from within the code of my DLL. Unfortunately it doesn't work. On my search for the error I inserted some code for outputing all Resources names to a simple textfile. Here nothing is output. Here my code (a little messy after about 3 hours of debugging): // Use the LoadXml method to load the XslTransform
1
1229
by: steve | last post by:
i've created a custom installer that automates some things one of which is the creation of database tables. i have put a sql script ("automation.sql") as an embedded resource in the custom installer project (whose name space is "installer"). here's the code i'm using to get the script: private function getEmbeddedText(byval fileName as string) as string dim assemblyName as string dim stream as stream
11
5580
by: Garrett | last post by:
I'm fairly new to VB .NET and programming in general, and I want to give my program its own icon without it being a separate file. I have the icon as part of the project, and its Build Action is set to Embedded Resource. I've searched high and low for the code that will actually make it load as the program's default icon, but nothing I've found works. Can someone give me the code necessary to do this?
7
3551
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 IntPtr LoadCursorFromFile( string fileName ); IntPtr hwdCursor= LoadCursorFromFile( "color.cur" ); myCursor.GetType().InvokeMember("handle",BindingFlags.Public |
0
1253
by: raghu sunkara | last post by:
Hi, Can I Change Resources In A Compiled Assembly At Runtime.I Need To Modify A String Resource Which is Embedded in Assembly. Thanks, Raghu
1
2341
by: raghu sunkara | last post by:
hi, how to change or modify embedded string resource in an assembly at runtime. please help me. Thanks, Raghu
0
1310
by: raghu sunkara | last post by:
Hi, How To Change Or Modify Embedded Resource In An Assembly. Actually I Need To Modify Embedded String Resource In A Compiled Assembly. Thanks, Raghu
1
15724
by: Steve Richter | last post by:
I am embedding an xml file in my class library assembly. In solution explorer I right click a folder, add , new item, xml file. then on the xml file I right click, properties, build action = embedded resource. build the class library, run the following code to access the XML as a stream: Stream cmdsStream =
8
14943
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 cut and paste code that MSDN recommends for playing a simple wav file from inside an embedded file, like presumeably the 'resources' file .resx is. I want to embed the .wav file in a 'resource file' since I don't want the user storing the file on...
0
8995
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, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
8832
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 effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
9381
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 tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
0
9254
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 protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
8252
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
0
6078
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 then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
4608
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
1
3316
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
3
2217
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.