can you tell me a way to get
some (i think two) adresses(<=> poitners) from a (for example) "MyVar :
procedure (a : integer) of object;",
that i can use to "rebuild" MyVar?
For example (but it doesn't work).
var p1,p2 : Pointer;
MyVar := "some my metohd."
p1 := MyVar.Code;
p2 := MyVar.Data;
.....
MyVar.Code := p1;
MyVar.Data := p2;
MyVar(1); //I call "some my method"
----- 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.

