Solved

Updating resource file dll

Posted on 2006-10-30
12
196 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 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
Salesforce Has Never Been Easier

Improve and reinforce salesforce training & adoption using WalkMe's digital adoption platform. Start saving on costly employee training by creating fast intuitive Walk-Thrus for Salesforce. Claim your Free Account Now

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

Featured Post

Free Tool: IP Lookup

Get more info about an IP address or domain name, such as organization, abuse contacts and geolocation.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

Introduction As chip makers focus on adding processor cores over increasing clock speed, developers need to utilize the features of modern CPUs.  One of the ways we can do this is by implementing parallel algorithms in our software.   One recent…
1.0 - Introduction Converting Visual Basic 6.0 (VB6) to Visual Basic 2008+ (VB.NET). If ever there was a subject full of murkiness and bad decisions, it is this one!   The first problem seems to be that people considering this task of converting…
With Secure Portal Encryption, the recipient is sent a link to their email address directing them to the email laundry delivery page. From there, the recipient will be required to enter a user name and password to enter the page. Once the recipient …
Are you ready to implement Active Directory best practices without reading 300+ pages? You're in luck. In this webinar hosted by Skyport Systems, you gain insight into Microsoft's latest comprehensive guide, with tips on the best and easiest way…

734 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