retrieve code from a .dllhttp://forums.asp.net/t/1755012.aspx/1?retrieve+code+from+a+dllMon, 02 Jan 2012 13:46:38 -050017550124760153http://forums.asp.net/p/1755012/4760153.aspx/1?retrieve+code+from+a+dllretrieve code from a .dll <p>hi,</p> <p>im not sure if this is the correct place to post this, but any help on the matter would be much appreciated.</p> <p>i have stupidly overwritten a visual basic class module which contained some changes i made in it, therefore i have lost the changes.</p> <p>the only thing i have is the compiled .dll which was compiled against the version of the code with my changes.</p> <p>does anyone know how i can retrieve my changes from this .dll?<strong> i am using vb6</strong></p> <p>please, any advise would be much appreciated on this matter as i would prefer not to have to write the code again.</p> <p>thank you very much</p> 2012-01-02T13:11:44-05:004760170http://forums.asp.net/p/1755012/4760170.aspx/1?Re+retrieve+code+from+a+dllRe: retrieve code from a .dll <p>If the dll was compiled with the changes, there's no way to get the old code back from the dll. Consider using source control (like Git, Mercurial, SVN etc.) so this doesn't happen in the future.</p> 2012-01-02T13:20:48-05:004760176http://forums.asp.net/p/1755012/4760176.aspx/1?Re+retrieve+code+from+a+dllRe: retrieve code from a .dll <p>i didnt really understand your reply, sorry. please can you confirm:</p> <p>the .dll i have <strong>has</strong> the changes i want to retrieve from it ie. the code before i over-wrote it.</p> <p>is there a way of getting it back from this?</p> <p></p> <p>thank you</p> 2012-01-02T13:28:30-05:004760185http://forums.asp.net/p/1755012/4760185.aspx/1?Re+retrieve+code+from+a+dllRe: retrieve code from a .dll <p>If it's a .NET dll, try using Reflector to view decompiled binaries of the dll. If it's not a .NET dll, try searching for a decompilation tool for the language the thing was written in. You may be able to salvage some code in some form using decompilation tools.</p> 2012-01-02T13:34:42-05:004760194http://forums.asp.net/p/1755012/4760194.aspx/1?Re+retrieve+code+from+a+dllRe: retrieve code from a .dll <p>i see, yeah i think thats what its looking like i need to do.</p> <p>thank you very much for your help!</p> 2012-01-02T13:41:24-05:004760200http://forums.asp.net/p/1755012/4760200.aspx/1?Re+retrieve+code+from+a+dllRe: retrieve code from a .dll <p>Glad to help. Be sure to use Git / Mercurial as source control from now on so that you can go back to previous versions of code when needed.</p> 2012-01-02T13:46:38-05:00