Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Classlib deleted, exe exists, how to restore?
Message
 
 
To
18/06/2003 12:12:18
Dragan Nedeljkovich (Online)
Now officially retired
Zrenjanin, Serbia
General information
Forum:
Visual FoxPro
Category:
Other
Miscellaneous
Thread ID:
00801232
Message ID:
00801313
Views:
11
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--
Previous
Reply
Map
View

Click here to load this message in the networking platform