Solved

Updating resource file dll

Posted on 2006-10-30
12
193 Views
Last Modified: 2008-03-10
hi

my problem is that I want to update the dll file of my resources file for the project

any one knows how

thanks in advance
0
Comment
Question by:mohammadalsayeh
  • 4
  • 4
  • 2
  • +1
12 Comments
 
LVL 12

Expert Comment

by:Mamtha1982
ID: 17840453
can you eloborate wht you want to exactly?

dll file cannot be modified, that is compiled code
0
 
LVL 5

Expert Comment

by:DEEPESH
ID: 17840473
Try locating resx and updating it.
0
 

Author Comment

by:mohammadalsayeh
ID: 17840490
I want to update the dll file @ runtime that is what my team leader asked me for
0
 
LVL 7

Expert Comment

by:Mohamed Zedan
ID: 17840930
do you mean like automatic update for an application when starting it ?

0
 
LVL 5

Expert Comment

by:DEEPESH
ID: 17841240
As far as I know u can't update dll, resx file can be updated
0
Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

 

Author Comment

by:mohammadalsayeh
ID: 17848321
ok how can I update the resx file
0
 
LVL 5

Expert Comment

by:DEEPESH
ID: 17848503
Open the REsx file in Visual Studio Id , it will show you a grid, u can update resource there.
0
 
LVL 7

Expert Comment

by:Mohamed Zedan
ID: 17848593
you could use

Imports System
Imports System.Resources

Public Class WriteResources
   
    Public Shared Sub Main()
       
        ' Creates a resource writer.
        Dim writer As New ResXResourceWriter("myResources.resx")
       
        ' Adds resources to the resource writer.
        writer.AddResource("String 1", "First String")
       
        writer.AddResource("String 2", "Second String")
       
        writer.AddResource("String 3", "Third String")
       
        ' Writes the resources to the file or stream, and closes it.
        writer.Close()
    End Sub
End Class

to read the resources you should use ResXResourceReader  class.
0
 
LVL 7

Expert Comment

by:Mohamed Zedan
ID: 17848596
If you explain the scenario more maybe we could understand more what you want and point you in the right direction :)
0
 
LVL 5

Expert Comment

by:DEEPESH
ID: 18060113
hi learnedone,
I file my nomination forpoints, as i think i was right, rest u decide
0
 
LVL 7

Accepted Solution

by:
Mohamed Zedan earned 500 total points
ID: 18062762
Also according to my tests my solution works.
0

Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Article by: jpaulino
XML Literals are a great way to handle XML files and the community doesn’t use it as much as it should.  An XML Literal is like a String (http://msdn.microsoft.com/en-us/library/system.string.aspx) Literal, only instead of starting and ending with w…
The ECB site provides FX rates for major currencies since its inception in 1999 in the form of an XML feed. The files have the following format (reducted for brevity) (CODE) There are three files available HERE (http://www.ecb.europa.eu/stats/exch…
Get a first impression of how PRTG looks and learn how it works.   This video is a short introduction to PRTG, as an initial overview or as a quick start for new PRTG users.
Concerto provides fully managed cloud services and the expertise to provide an easy and reliable route to the cloud. Our best-in-class solutions help you address the toughest IT challenges, find new efficiencies and deliver the best application expe…

914 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

20 Experts available now in Live!

Get 1:1 Help Now