Last post Jan 02, 2012 09:46 AM by HeartattacK
Jan 02, 2012 09:11 AM|young345|LINK
im not sure if this is the correct place to post this, but any help on the matter would be much appreciated.
i have stupidly overwritten a visual basic class module which contained some changes i made in it, therefore i have lost the changes.
the only thing i have is the compiled .dll which was compiled against the version of the code with my changes.
does anyone know how i can retrieve my changes from this .dll? i am using vb6
please, any advise would be much appreciated on this matter as i would prefer not to have to write the code again.
thank you very much
Jan 02, 2012 09:20 AM|HeartattacK|LINK
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.
Jan 02, 2012 09:28 AM|young345|LINK
i didnt really understand your reply, sorry. please can you confirm:
the .dll i have has the changes i want to retrieve from it ie. the code before i over-wrote it.
is there a way of getting it back from this?
Jan 02, 2012 09:34 AM|HeartattacK|LINK
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
Jan 02, 2012 09:41 AM|young345|LINK
i see, yeah i think thats what its looking like i need to do.
thank you very much for your help!
Jan 02, 2012 09:46 AM|HeartattacK|LINK
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.