What is the simplest way to create and call dynamically a class method in C++?

后端 未结 8 1140
太阳男子
太阳男子 2021-01-01 05:28

I want to fill a map with class name and method, a unique identifier and a pointer to the method.

typedef std::map

        
8条回答
  •  天涯浪人
    2021-01-01 06:23

    You can also use dynamic loading of the functions:

    Use GetProcAddress in Windows, and dlsym in Unix.

提交回复
热议问题