Re: Validating a Function Address



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/


.


Loading