怎样取得某一成员函数的地址?
某个类CInitApp, 其中有个成员函数
int CALLBACK CInitApp::DoSomthing(int,LPSTR)
{
.....
}
另一个函数, 需要传递上个函数的地址, 这个地址是十六进制的DOWRD型, CInitApp::NeedAddress(DWORD FuncAddress).
假如DoSomething的地址是0X0044BD5C, 那么希望最后调用时是这样
NeedAddress(0X0044BD5C); //调用函数
这个怎么写?