function-pointers
Pointers to functions and derived classes
I\'m having a problem with g++ and how templates interact with pointers to functions. Consider the following declaration of a template.[详细]
2023-04-13 07:13 分类:问答Pointer to member function the strange way
I have a class, Mouse, than handles mouse events.It consists of a number of static functions for simple \"where is it, etc\" calls, but it also has a few non-static members, namely some event-handling[详细]
2023-04-12 19:24 分类:问答Finding a function from its address
How can i get which function is pointed by a function pointer? I have the value of the function pointer, lets say 0x00001AC4, and I have the whole source code, but I don\'t know to which function the[详细]
2023-04-12 02:51 分类:问答Why not calling window procedure instead of calling CallWindowProc?
Why is ther开发者_运维问答e such function CallWindowProc? We are supplying the address of the window procedure, so isn\'t it better to call the function instead of calling another function which calls[详细]
2023-04-11 18:42 分类:问答Overload a pointer to an overloaded function
If I try to define a pointer to an overloaded function void myprint(int ); void myprint(const char* ); void (*funpointer)(int) = myprint;[详细]
2023-04-11 07:22 分类:问答memory access violation from static callback function
I have a C++ DLL which I give a pointer to a static function as a callback: 开发者_如何学Python static void CallBackFunc(int num);[详细]
2023-04-11 04:46 分类:问答Using generic std::function objects with member functions in one class
For one class I want to store some function pointers to member functions of the same class in one map storing std::function objects. But I fail right at the beginning with this code:[详细]
2023-04-09 04:39 分类:问答C++ member function pointers in class and subclass
I have one base class which holds a map for function pointers like this typedef void (BaseClass::*event_t)();[详细]
2023-04-07 20:53 分类:问答How can I expose C functions to a custom virtual machine?
I\'m working on a virtual machine which I would like to be able to interface with C. Going the other way and exposing virtual machine functions to C code is fairly easy, what I can\'t wrap my head aro[详细]
2023-04-07 12:29 分类:问答Calling an UnmanagedFunctionPointer in C# for custom calling conventions
I have a function in a DLL: char __usercall MyUserCallFunction<al>(int arg1<esi>) Because I hate myself I\'d like to call this from within C# using P/Invoke.[详细]
2023-04-07 09:23 分类:问答