Dragan
Check
Recover forms, classes, reports from exe File #
9881>Through a series of slight mishaps, I'm in the following situation:
>
>The class library in question is reverted to its previous version, where the class I worked on all day yesterday is missing. However, it exists in the executable built before this happened.
>
>I can't think of good keywords to search UT for this, so if there's a thread where there's a good trick how to do this, any hints are welcome.
>
>I have already tried this:
>
>ox=newobject("myclass", "myclasslib", "my.exe")
>
>and ox instantiates. Unfortunately, since my.exe is also a COM server, it has a lot of properties in many of the classes declared as protected or hidden, so x.saveasclass() doesn't work, and also x.readmethod() returns "".
>
>If everything else fails, I can always open the .exe as text and search for the code. I'd just like to know if there's a simpler way.
>
>[update] I've found one way - using the debugger. Call manually one of the methods I want to restore, set a breakpoint to atc("{method name here}", prog()), and do a x.methodname - and it stops in the debugger right away. Then it's just a copy/paste from the trace window. I'll still have to rebuild a couple of controls, but that's easy.
>
>Still, I'd like to know if there's a way to copy the whole classlib out of the exe.
--sb--