Cannot call member function without object = C++

前端 未结 5 1419
梦谈多话
梦谈多话 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:05

    You have to declare the function with the 'static' keyword:

    class IC_Utility {
        static void CP_StringToPString( FxString& inString, FxUChar *outString);
    

提交回复
热议问题