/*Well, I'll try to explain my problem in english.I'm dealing with the MFC, when your receive a message, you need to do a thing like this to intercept it :*/ON_COMMAND(IDC_ACTIONSCAN, &FunctionAdress)/*What I want is to put a variable instead of FunctionAdress which will contain a function adress, it will makemy programme possible to dynamicly change the adress of the function and use a different function.The problem is that it don't work, impossible to cast a var of any type to a AFX_PMSG, even with a reinterpret_cast*/class myclass {//[...] afx_msg static int a_variable; //contain the adress of the function afx_msg void OnMenuModuleMenuDefault(); //it work if I use this function//[...]}myclass::OnMenuModuleMenuDefault{ DoSomething() }myclass::_variable = //adresse of a default function, will be changed if a dll is loaded or something else