MyMenuApp::MyMenuApp(void)
{
AddMenuItem("blah", reinterpret_cast<void(__thiscall MenuApp::*)(void)> (&MyMenuApp::GetVoltage));
}
error C2440: 'reinterpret_cast' : cannot convert from 'void (__thiscall MyMenuApp::* )(void)' to 'void (__thiscall MenuApp::* )(void)'
Pointers to members have different representations; cannot cast between them
MyMenuApp is a subclass of MenuApp. How can I fix this error? Note: I need to use pointer to member functions to get full credit. MenuApp can't explicitly take pointer to member functions of class MyMenuApp, because it's supposed to be a framework function.
Beowulf Needs Help (Programming, not the Mental kind)
Moderator: Thanas
Beowulf Needs Help (Programming, not the Mental kind)
"preemptive killing of cops might not be such a bad idea from a personal saftey[sic] standpoint..." --Keevan Colton
"There's a word for bias you can't see: Yours." -- William Saletan
"There's a word for bias you can't see: Yours." -- William Saletan