Want to protect your cyber security and still get fast solutions? Ask a secure question today.Go Premium

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 201
  • Last Modified:

Updating resource file dll

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
mohammadalsayeh
Asked:
mohammadalsayeh
  • 4
  • 4
  • 2
  • +1
1 Solution
 
Praveen KumarArchitectCommented:
can you eloborate wht you want to exactly?

dll file cannot be modified, that is compiled code
0
 
DEEPESHCommented:
Try locating resx and updating it.
0
 
mohammadalsayehAuthor Commented:
I want to update the dll file @ runtime that is what my team leader asked me for
0
Concerto Cloud for Software Providers & ISVs

Can Concerto Cloud Services help you focus on evolving your application offerings, while delivering the best cloud experience to your customers? From DevOps to revenue models and customer support, the answer is yes!

Learn how Concerto can help you.

 
Mohamed ZedanCommented:
do you mean like automatic update for an application when starting it ?

0
 
DEEPESHCommented:
As far as I know u can't update dll, resx file can be updated
0
 
mohammadalsayehAuthor Commented:
ok how can I update the resx file
0
 
DEEPESHCommented:
Open the REsx file in Visual Studio Id , it will show you a grid, u can update resource there.
0
 
Mohamed ZedanCommented:
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
 
Mohamed ZedanCommented:
If you explain the scenario more maybe we could understand more what you want and point you in the right direction :)
0
 
DEEPESHCommented:
hi learnedone,
I file my nomination forpoints, as i think i was right, rest u decide
0
 
Mohamed ZedanCommented:
Also according to my tests my solution works.
0

Featured Post

Independent Software Vendors: 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!

  • 4
  • 4
  • 2
  • +1
Tackle projects and never again get stuck behind a technical roadblock.
Join Now