Results 1 to 6 of 6

Thread: 2 Questions

  1. #1
    DaBookshah
    Guest

    2 Questions

    Greetings, fellow forum-members.

    I have two questions:
    1. Can anyone advise me on debugging the windowing system(I don't know how else to put it) of a borland delphi program? I mean, its such spaggetti, and every time i try I end up getting lost half-way through, and having to start over.
    2. I don't really understand the use of inbuilt window-classes, "Button", etc. Olly shows the windowproc for these windows being in user32, how does execution get from there to the actual program?

    Thanks,
    Rohan
    I promise that I have read the FAQ and tried to use the Search to answer my question.

  2. #2
    <script>alert(0)</script> disavowed's Avatar
    Join Date
    Apr 2002
    Posts
    1,281
    For question 1, use http://www.wasm.ru/tools/20/D67RTL.zip in IDA and use IDA's disassembly to help you with debugging in OllyDbg. Additionally, you can try http://www.wasm.ru/baixado.php?mode=tool&id=55 for Delphi disassembling.
    For question 2, you need to understand how windows work in Windows. For example, see
    Code:
    http://msdn.microsoft.com/library/en-us/winui/winui/windowsuserinterface/windowing/windowprocedures/windowprocedurereference/windowprocedurefunctions/windowproc.asp?frame=true.
    The information there won't help you much, but dig deeper into this type of documentation to learn more.

  3. #3
    Registered User
    Join Date
    Aug 2005
    Location
    Greece
    Posts
    157
    Quote Originally Posted by DaBookshah
    ... windowing system(I don't know how else to put it) of a borland delphi program ...
    Known as Visual Component Library (VCL) .

    http://bdn.borland.com/article/32975
    A picture worth 1K words (or .5K DWORDS).

  4. #4
    2. You'll understand this when you figure out that every common UI element is composed of one or more windows which react to various messages, along with the functions (wndprocs) used to process those messages.

    For example, a button is nothing more than a simple bordered window that responds to mouse click messages, which makes it update its appearance and send a message to its parent window.

  5. #5
    DaBookshah
    Guest
    Ah-ha. Getting somewhere. So the entire functionality of those built-in classes is within user32.dll, and messages are handled by the program only when the built-in class window sends a window-message to its parent window. I guess I was getting a little confused because typically in java/standard GUI's, you can add an "onclick" handler to a button, so i figured there must be some direct link between the windowproc and the program. But yeah, if the in-built classes just propogate relevant messages upwards, that makes sense. So many messages are filtered out by user32, and only the relevant ones go on to the parent?
    I promise that I have read the FAQ and tried to use the Search to answer my question.

  6. #6
    Indeed. Check the SDK for BN_ messages.

    Regards
    Fake

Similar Threads

  1. rsa Questions
    By tommychong in forum RCE Cryptographics
    Replies: 6
    Last Post: September 14th, 2005, 17:12
  2. Some DRx Questions
    By Lenus in forum OllyDbg Support Forums
    Replies: 3
    Last Post: December 31st, 2004, 04:19
  3. Some DRx Questions
    By Lenus in forum The Newbie Forum
    Replies: 2
    Last Post: December 28th, 2004, 18:11
  4. ??? Questions ???
    By Anonymous in forum OllyDbg Support Forums
    Replies: 4
    Last Post: July 23rd, 2003, 14:52
  5. RegOrganizer 1.3B4: Questions and More Questions (sv / +spl/\j guru!)
    By foxthree in forum Malware Analysis and Unpacking Forum
    Replies: 17
    Last Post: March 9th, 2002, 06:43

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •