Home > Archive > Clarion > May 2004 > method address
You are viewing an archived Text-only version of the thread.
To view this thread in it's original format and/or if you want to reply to
this thread please [click here]
|
|
|
| Hi can anyone help me with a workaround for getting the address of a class
method ?
I'm trying to use callbacks with wininet using intenetsetstatuscallback()
and I use "CallbackMethodAddress=ADDRESS(Self.MyMethod)" to get the address
of my callback method .
When I try to test my methods the callback method is accessed, but then I
get a program crash immediately after.
Can anyone point me in the right direction
Thanks
Mark
| |
| Leonid Chudakov 2004-05-04, 4:30 pm |
| Hi Mark,
You can't use class method as callback procedure. You need to add a separate
procedure for that. It also has to use PASCAL convention.
--
--
Leonid Chudakov
chudakov@klarisoft.com
Cool tools and Clarion examples at
http://www.klarisoft.com
"Mark" <mark@unrealfusion.co.uk> wrote in message
news:J3Plc.395278$2oI1.126978@twister01.bloor.is.net.cable.rogers.com...
> Hi can anyone help me with a workaround for getting the address of a class
> method ?
>
> I'm trying to use callbacks with wininet using intenetsetstatuscallback()
> and I use "CallbackMethodAddress=ADDRESS(Self.MyMethod)" to get the
address
> of my callback method .
>
> When I try to test my methods the callback method is accessed, but then I
> get a program crash immediately after.
>
> Can anyone point me in the right direction
>
> Thanks
>
> Mark
>
>
| |
|
| Hi Leonid,
thanks for your help, I didn't think I could but it was worth a try :) works
fine outside the class
Regards
Mark
"Leonid Chudakov" <chudakov@klarisoft.com> wrote in message
news:IpPlc.32088$ZJ5.921625@news20.bellglobal.com...
> Hi Mark,
>
> You can't use class method as callback procedure. You need to add a
separate
> procedure for that. It also has to use PASCAL convention.
>
> --
> --
> Leonid Chudakov
> chudakov@klarisoft.com
> Cool tools and Clarion examples at
> http://www.klarisoft.com
>
> "Mark" <mark@unrealfusion.co.uk> wrote in message
> news:J3Plc.395278$2oI1.126978@twister01.bloor.is.net.cable.rogers.com...
class[color=darkred]
intenetsetstatuscallback()[color=darkred
]
> address
I[color=darkred]
>
>
|
|
|
|
|