Re: Validating a Function Address
- From: "Karl E. Peterson" <karl@xxxxxxxx>
- Date: Mon, 11 Dec 2006 15:31:10 -0800
Hi Chip --
I'm writing a procedure that accepts as input, among other things, the
address of a function which will in turn be passed to SetTimer. I
want to do as much up front error checking as I can. Is there any
function that will examine an value and indicate whether it is a
valid function address? I would prefer to test the address in my code
rather than pass a bad address to SetTimer.
I gotta agree with Michael here:
For the OP, you should not do any checks on the function pointer, if
someone is passing around function pointers then they should be
expected to know what a valid address is.
What on Earth are you doubting these values for? You're not calculating
them, or something, are you?
Later... Karl
--
Working without a .NET?
http://classicvb.org/
.
- Follow-Ups:
- Re: Validating a Function Address
- From: Thorsten Albers
- Re: Validating a Function Address
- From: J French
- Re: Validating a Function Address
- References:
- Validating a Function Address
- From: Chip Pearson
- Validating a Function Address
- Prev by Date: Re: Validating a Function Address
- Next by Date: Re: Validating a Function Address
- Previous by thread: Re: Validating a Function Address
- Next by thread: Re: Validating a Function Address
- Index(es):
Loading