Cannot call member function without object = C++

前端 未结 5 1414
梦谈多话
梦谈多话 2021-02-13 07:17

I am brushing up again and I am getting an error:

Cannot call member function without object.

I am calling like:

FxString text = table.GetEntry(o         


        
5条回答
  •  遇见更好的自我
    2021-02-13 08:02

    "static" is the right answer. or, you can pass it a NULL "this" pointer if it's not used in the function:

    ((IC_Utility*)NULL)->CP_StringToPString(...);
    

提交回复
热议问题