Editing Embedded Resource

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Sahil Malik [MVP]

    Editing Embedded Resource

    Okay, so say I have a compiled DLL that contains a string resource.

    I don't have access to the source code of the dll, but I wish to change that
    resource.

    How can I do that? :-)

    - Sahil Malik [MVP]
    Upcoming ADO.NET 2.0 book - http://tinyurl.com/9bync
    ----------------------------------------------------------------------------
    ---------------


  • Brendan Grant

    #2
    RE: Editing Embedded Resource

    Given that resources are (officially) read only, your best bet would be to
    use ildasm to disassemble the assembly, edit the string, and recompile it.

    http://msdn.microsoft.com/library/de...perability.asp has a bit on how to do that.

    Brendan


    "Sahil Malik [MVP]" wrote:
    [color=blue]
    > Okay, so say I have a compiled DLL that contains a string resource.
    >
    > I don't have access to the source code of the dll, but I wish to change that
    > resource.
    >
    > How can I do that? :-)
    >
    > - Sahil Malik [MVP]
    > Upcoming ADO.NET 2.0 book - http://tinyurl.com/9bync
    > ----------------------------------------------------------------------------
    > ---------------
    >
    >
    >[/color]

    Comment

    • Sahil Malik [MVP]

      #3
      Re: Editing Embedded Resource

      Well ildasm's code isn't quite recompilable easily. And I really don't want
      to mess up the rather extensive functionality in that dll.

      --

      - Sahil Malik [MVP]
      Upcoming ADO.NET 2.0 book - http://tinyurl.com/9bync
      ----------------------------------------------------------------------------
      ---------------

      "Brendan Grant" <BrendanGrant@d iscussions.micr osoft.com> wrote in message
      news:EDAAE96C-EDB8-4D1F-AEB0-2CD9C8F94BC3@mi crosoft.com...[color=blue]
      > Given that resources are (officially) read only, your best bet would be to
      > use ildasm to disassemble the assembly, edit the string, and recompile it.
      >
      >[/color]

      has a bit on how to do that.[color=blue]
      >
      > Brendan
      >
      >
      > "Sahil Malik [MVP]" wrote:
      >[color=green]
      > > Okay, so say I have a compiled DLL that contains a string resource.
      > >
      > > I don't have access to the source code of the dll, but I wish to change[/color][/color]
      that[color=blue][color=green]
      > > resource.
      > >
      > > How can I do that? :-)
      > >
      > > - Sahil Malik [MVP]
      > > Upcoming ADO.NET 2.0 book - http://tinyurl.com/9bync[/color]
      >
      > --------------------------------------------------------------------------[/color]
      --[color=blue][color=green]
      > > ---------------
      > >
      > >
      > >[/color][/color]


      Comment

      • Nathan Kovac

        #4
        Re: Editing Embedded Resource

        You try using a normal hex editor?

        "Sahil Malik [MVP]" <contactmethrum yblog@nospam.co m> wrote in message
        news:%23zojmYBe FHA.1036@tk2msf tngp13.phx.gbl. ..[color=blue]
        > Well ildasm's code isn't quite recompilable easily. And I really don't
        > want
        > to mess up the rather extensive functionality in that dll.
        >
        > --
        >
        > - Sahil Malik [MVP]
        > Upcoming ADO.NET 2.0 book - http://tinyurl.com/9bync
        > ----------------------------------------------------------------------------
        > ---------------
        >
        > "Brendan Grant" <BrendanGrant@d iscussions.micr osoft.com> wrote in message
        > news:EDAAE96C-EDB8-4D1F-AEB0-2CD9C8F94BC3@mi crosoft.com...[color=green]
        >> Given that resources are (officially) read only, your best bet would be
        >> to
        >> use ildasm to disassemble the assembly, edit the string, and recompile
        >> it.
        >>
        >>[/color]
        > http://msdn.microsoft.com/library/de...perability.asp
        > has a bit on how to do that.[color=green]
        >>
        >> Brendan
        >>
        >>
        >> "Sahil Malik [MVP]" wrote:
        >>[color=darkred]
        >> > Okay, so say I have a compiled DLL that contains a string resource.
        >> >
        >> > I don't have access to the source code of the dll, but I wish to change[/color][/color]
        > that[color=green][color=darkred]
        >> > resource.
        >> >
        >> > How can I do that? :-)
        >> >
        >> > - Sahil Malik [MVP]
        >> > Upcoming ADO.NET 2.0 book - http://tinyurl.com/9bync[/color]
        >>
        >> --------------------------------------------------------------------------[/color]
        > --[color=green][color=darkred]
        >> > ---------------
        >> >
        >> >
        >> >[/color][/color]
        >
        >[/color]


        Comment

        • Nathan Kovac

          #5
          Re: Editing Embedded Resource

          Or notepad searching for the string you want to change.

          "Sahil Malik [MVP]" <contactmethrum yblog@nospam.co m> wrote in message
          news:%23zojmYBe FHA.1036@tk2msf tngp13.phx.gbl. ..[color=blue]
          > Well ildasm's code isn't quite recompilable easily. And I really don't
          > want
          > to mess up the rather extensive functionality in that dll.
          >
          > --
          >
          > - Sahil Malik [MVP]
          > Upcoming ADO.NET 2.0 book - http://tinyurl.com/9bync
          > ----------------------------------------------------------------------------
          > ---------------
          >
          > "Brendan Grant" <BrendanGrant@d iscussions.micr osoft.com> wrote in message
          > news:EDAAE96C-EDB8-4D1F-AEB0-2CD9C8F94BC3@mi crosoft.com...[color=green]
          >> Given that resources are (officially) read only, your best bet would be
          >> to
          >> use ildasm to disassemble the assembly, edit the string, and recompile
          >> it.
          >>
          >>[/color]
          > http://msdn.microsoft.com/library/de...perability.asp
          > has a bit on how to do that.[color=green]
          >>
          >> Brendan
          >>
          >>
          >> "Sahil Malik [MVP]" wrote:
          >>[color=darkred]
          >> > Okay, so say I have a compiled DLL that contains a string resource.
          >> >
          >> > I don't have access to the source code of the dll, but I wish to change[/color][/color]
          > that[color=green][color=darkred]
          >> > resource.
          >> >
          >> > How can I do that? :-)
          >> >
          >> > - Sahil Malik [MVP]
          >> > Upcoming ADO.NET 2.0 book - http://tinyurl.com/9bync[/color]
          >>
          >> --------------------------------------------------------------------------[/color]
          > --[color=green][color=darkred]
          >> > ---------------
          >> >
          >> >
          >> >[/color][/color]
          >
          >[/color]


          Comment

          Working...