Calling a Function From a String With the Function’s Name in C++

前端 未结 8 1120
故里飘歌
故里飘歌 2020-12-10 15:35

How can I call a C++ function from a string?

Instead of doing this, call the method straight from string:

void callfunction(const char* callthis, int         


        
8条回答
  •  忘掉有多难
    2020-12-10 16:25

    May not be an option, but if you can use managed c++ (C++/CLI), you can do this just like you can in C#. This will require .NET though...

提交回复
热议问题