And now to the point... If it is practically possible to do it - As the forum post in your link shows us, by using assembler and bypassing the __thiscall etc - But why do want to do it?? It is just unecessary and will end up in a code that is

  • Hard to read
  • Hard to debug
  • And a complete overhead


Since a static member procedure which has a map of the ids and member to be called, much more easily, not so fault-prone and easier to implement. Even the designers of the MFC decided not to use this technique with the assembler instructions and so on...

Keep it simple...