The this pointer is passed as an optional argument to the function using the standard convention on your platform. On all platforms that I'm familiar with, it is passed as the first argument, but I don't do a lot of C ++ code, so I'm not sure if this is guaranteed by the standard. You can always parse C ++ code on your platform for confirmation.
C ++ naming is more painful than in C, and varies from compiler to compiler. I suppose you could find the correct character name to use by looking at the compiled function definition, just make sure: the function is a member of the right class and has the correct number and type of arguments.
If you really do not need to reproduce the C ++ function in situ, I would most likely just execute the standard C function and make the usual extern "C" { ... } around its declaration.
source share