G
Gernot Frisch
static short gfunc(short a, short b)
{return 0;}
class B{
B();
short(m_func)(short, short);
}
B::B()
{
m_func = gfunc;
}
error C2659: '=' : overloaded function as left operand
I'm not very familiar with pointer to functions. Can you help?
Thank you,
Gernot
--
-Gernot
int main(int argc, char** argv) {printf
("%silto%c%cf%cgl%ssic%ccom%c", "ma", 58, 'g', 64, "ba", 46, 10);}
________________________________________
Looking for a good game? Do it yourself!
GLBasic - you can do
www.GLBasic.com
{return 0;}
class B{
B();
short(m_func)(short, short);
}
B::B()
{
m_func = gfunc;
}
error C2659: '=' : overloaded function as left operand
I'm not very familiar with pointer to functions. Can you help?
Thank you,
Gernot
--
-Gernot
int main(int argc, char** argv) {printf
("%silto%c%cf%cgl%ssic%ccom%c", "ma", 58, 'g', 64, "ba", 46, 10);}
________________________________________
Looking for a good game? Do it yourself!
GLBasic - you can do
www.GLBasic.com