problem about member-function-pointers-Record and share programming errors


  • LOLKFC
    c++ pointers dll member-function-pointers
    I’d like to access to the member functions of my main class with a pointer, from a class in a lib.I have access to the variables public in my main class. But when I try to access to the member functions (public), I have this error : ./Panda: symbol lookup error: libkoala.so: undefined symbol: _ZNK5Panda6getLOLEvI really don’t know why, maybe

  • laifjei
    c++ member-function-pointers
    I write some testing code, to figure out the address about member function. But the result confuse me. the code is#include #include #include class A { public:A(char _a, char _b, char _c, char _t):a(_a), b(_b), c(_c), t(_t){}private:char t

  • wk1989
    c++ function-pointers member-function-pointers dll-injection
    in C++, I can easily create a function pointer by taking the address of a member function. However, is it possible to change the address of that local function? I.e. say I have funcA() and funcB() in the same class, defined differently. I’m looking to change the address of funcA() to that of funcB(), such that at run time calling funcA() actually results in a call to funcB(). I know this is ugly, but I need to do this, thanks!EDIT-

  • slashmais
    c++ member-function-pointers phantom-reference
    I’ve been messing about with member-function pointers in relation to a previous question. In the code below I call methods on a class (B) that change a variable (count) in it, but I never make an instance of this class. Why does this work?#include #include #include class A; typedef int (A::*MEMFUNC)(int, int);#define

  • Georg Fritzsche

Originally posted 2013-08-31 07:20:02.