Array of functions pointers using wx_DEFINE_ARRAY
Matías Szeftel
mszeftel at yahoo.com.ar
Fri Feb 2 13:58:29 PST 2007
Vadim Zeitlin escribió:
> On Fri, 2 Feb 2007 04:48:59 -0300 MatÃas Szeftel <mszeftel at yahoo.com.ar> wrote:
>
> MS> I'm trying to make an array of functions pointers.
> MS> I've used a typedef for the pointer function :
> MS> typedef int (*CMPFUNC_proto)(wxActiveRecordRow**,wxActiveRecordRow**);
> MS> And I use wxArray for the array implemantation:
> MS> WX_DEFINE_ARRAY(CMPFUNC_proto, CmpArr);
> MS>
> MS> My compiler doesn't like that line.
>
> Your compiler is correct, a pointer to a function can't be cast to "void
> *" like this. We'd need a separate set of macros for function pointer
> arrays. For now I can only recommend you to use std::vector instead.
>
>
Thnx for the reply.
Any idea why this worked before? Could this be new to wx2.8 or new to
gcc-4.1? Any ideas why this work with no problem with VC++ 2005 Express?
Any way, I've already approach this differently.
Regards, MatÃas.
PS (off topic): what email cliente you use? I like the way you use the
top posting and reply abbreviation: MatÃas Szeftel = MS.
> Regards,
> VZ
>
>
__________________________________________________
Preguntá. Respondé. Descubrí.
Todo lo que querías saber, y lo que ni imaginabas,
está en Yahoo! Respuestas (Beta).
¡Probalo ya!
http://www.yahoo.com.ar/respuestas
More information about the wx-users
mailing list