Re: Locating procedures within an EXE
From: Pete Wason (rogue_at_hynoom.com)
Date: 12/18/03
- Next message: Adam Ben Nalois: "How to program right colon movement?"
- Previous message: Pete Wason: "Re: Replacing Delphi developers"
- Next in thread: Jamie: "Re: Locating procedures within an EXE"
- Reply: Jamie: "Re: Locating procedures within an EXE"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Date: Wed, 17 Dec 2003 23:49:14 -0500
Jason Tanner wrote:
> Hi,
>
> Further to my other thread regarding software protection, how would I
> go about locating procedures within an EXE?
>
Oddly, I'm looking to do something similar. I have a unit of code which is used
in a bigger project, but which contains a boatload of functions that I need to
test. Currently, I have a simple GUI which parses the pas file for the unit and
displays all the function names in a listbox. When I click on a function name,
it's parameters (and their types) show up in a second listbox. When I click on
a parameter, an appropriate control gets created so I can enter test values for
the param. Once all the params are filled in, I click a button and the results
of the function are plopped into a memo. (roughly) This gets a bit tricky when
one or more of the params is a record or array type, but I fugirued out how to
parse those out of the pas file too.
I asked about getting the information I need at runtime without parsing the pas
file on one of the borland NGs, and got 3 completely different answers:
1. You can't do it
2. You're almost doing it
3. You should use DUnit instead
Pete
- Next message: Adam Ben Nalois: "How to program right colon movement?"
- Previous message: Pete Wason: "Re: Replacing Delphi developers"
- Next in thread: Jamie: "Re: Locating procedures within an EXE"
- Reply: Jamie: "Re: Locating procedures within an EXE"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]