Go Premium for a chance to win a PS4. Enter to Win

x
?
Solved

Updating resource file dll

Posted on 2006-10-30
12
Medium Priority
?
200 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:Praveen Kumar
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
Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

 
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
 

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 2000 total points
ID: 18062762
Also according to my tests my solution works.
0

Featured Post

Ask an Anonymous Question!

Don't feel intimidated by what you don't know. Ask your question anonymously. It's easy! Learn more and upgrade.

Question has a verified solution.

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

Parsing a CSV file is a task that we are confronted with regularly, and although there are a vast number of means to do this, as a newbie, the field can be confusing and the tools can seem complex. A simple solution to parsing a customized CSV fi…
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…
Integration Management Part 2
This lesson discusses how to use a Mainform + Subforms in Microsoft Access to find and enter data for payments on orders. The sample data comes from a custom shop that builds and sells movable storage structures that are delivered to your property. …
Suggested Courses

916 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