RE: [Spam 7.81] Re: How to update both the Console and the GTKMM gui window after running other functions



Quoth Moh B:
You declared a void myprocess1(void); member function <== WITH void
parameter list BUT in the myLabel::myLabel() constructor you called the
myprocess1() WITHOUT any parameter list: This may cause problems to the
compiler:
      protected:
      Gtk::Label m_label;
      string labeltext;
      string newtext;
      void myprocess1(); <== see here
caution required.

C++ defines () and (void) to be equivalent.  That's only a problem in C code
(which defines these as distinct).

You should usually try to be consistent with using one or the other, though.




[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]