C/C++: getting pointer to function without function name

question as above. For example, I have custom DLL/binary/executable file, and I want to get array of pointers, pointing to all functions stored in this file.

I thought about virtual/pure virtual functions and placing under specific address, but I’m not sure about the first (I’d like to use malloc and raw data loading), and I cannot make second solution easy-to-use for potential modders.

How to do this in C/C++, is this possible at all?

Thanks in advance!


Source: c++

Leave a Reply