i think i could pass it,
but i'm not sure about the convention call.
In fact, it raises an exception, but the address of the method called is
right.
----- Original Message -----
From: "Rob Kennedy" <[EMAIL PROTECTED]>
To: <[email protected]>
Sent: Tuesday, May 16, 2006 10:27 PM
Subject: Re: [delphi-en] Pointers casting
> Mauro Russo wrote:
> > I'm finidng a different way,
> >
> > but i need to know
> >
> > a) how to ceonvert a method in a TMethod variable.
>
> Convert it to what?
>
> > b) how to call the method using the TMethod variable.
>
> Type-cast it to the type of method pointer it really is, and then call the
> method through the method pointer. There's nothing special about TMethod;
> it's just a record with two pointer fields. A real method-pointer type can
> be called, though.
>
> --
> Rob
>
>
>
>
>
> -----------------------------------------------------
> Home page: http://groups.yahoo.com/group/delphi-en/
> To unsubscribe: [EMAIL PROTECTED]
> Yahoo! Groups Links
>
>
>
>
>
>
>
-----------------------------------------------------
Home page: http://groups.yahoo.com/group/delphi-en/
To unsubscribe: [EMAIL PROTECTED]
YAHOO! GROUPS LINKS
- Visit your group "delphi-en" on the web.
- To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]
- Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.

